This is a migrated thread and some comments may be shown as answers.

RadGrid inside user control - events not firing

2 Answers 91 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Mathew
Top achievements
Rank 1
Mathew asked on 15 Mar 2013, 04:48 PM
Hi,

I have a RadGrid that sits inside an asp.net user control, with support for updating items via the grid.  This all works perfectly when I add the grid in markup, however, when I add the user control programmatically to a form, the item updated event does not fire, and I am therefore unable to persist any user changes from the grid.

There are no differences other than how the grid is initially declared.  Is this an asp.net issue related to user controls, or is there a known issue for RadGrids?

Thanks

2 Answers, 1 is accepted

Sort by
0
Kostadin
Telerik team
answered on 20 Mar 2013, 01:25 PM
Hello Mathew,

Could you please elaborate a little bit more on your scenario? Sending us your code declaration and the related code behind will help us to pinpoint the reason for that behavior. Additionally you could review the following help topic where is described how to create a grid programmatically.

All the best,
Kostadin
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
0
Mathew
Top achievements
Rank 1
answered on 20 Mar 2013, 05:01 PM
Hi,

Looks like this was a page lifecycle issue.  I was creating the control in page_load each time.  When switching this over to use page_init instead, the control events fired as expected.

Thanks
Tags
Grid
Asked by
Mathew
Top achievements
Rank 1
Answers by
Kostadin
Telerik team
Mathew
Top achievements
Rank 1
Share this question
or