Installation and deployment
Version 7.x > Installation and deployment > Telerik issue View modes: 
User avatar
Certified Developer v6
Certified Developer v6
kmurphy-wakefly - 5/22/2013 9:03:07 AM
   
Telerik issue
I have a telerik grid and a button in a webpart. My grid is a Telerik grid with Master Detail. My detail has an ItemTemplate with a Textbox, dropdown, and a checkbox.

When I click a button and try to access the controls, it says my grid is empty. I have the grid and button are in the same webpart.

I've taken the code out and used it in a separate solution. It works great. When I use it inside of a webpart, it doesn't work.

I'm not sure if I need to place sections of the code in special events, or if maybe I have to set up the web part configuration a certain way. Maybe I have the wrong checkboxes checked inside the web part configuration? I'm pretty confused.

Has anyone had issues with a telerik grid inside a Kentico web part before?

User avatar
Kentico Legend
Kentico Legend
Brenden Kehren - 5/22/2013 3:40:48 PM
   
RE:Telerik issue
When are you binding the data and when are you attempting to access the controls? Any code samples would be helpful.

User avatar
Kentico Support
Kentico Support
kentico_jurajo - 5/23/2013 1:00:43 AM
   
RE:Telerik issue
Hi,

Yes, any code samples would be great. Also, at what event are you looking for the control and how (are you using FindControl method)? It is important to do it in the right life cycle event so all the controls are added to the controls collection at given time.

Best regards,
Juraj Ondrus