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

Rebind RadGrid EditForm Control on RadWindow OnClientClose

1 Answer 63 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Stephen
Top achievements
Rank 1
Stephen asked on 11 Jul 2011, 07:15 PM
I have a ReadGrid using EditForms for inserting/Updating.  I have a dropdownlist as one of the controls in the EditForm.  A button in the EditForm opens a RadWindow.  I want to rebind the dropdownlist when I close the RadWindow.

I've got the RadAjaxManager in place and the javascript to call the ajax request.  My question is, how do I access the EditForm control in the RadAjaxManager_AjaxRequest method in the codebehind?  I think I somehow need to get a GridEditFormItem so I can do a findcontrol to get my dropdownlist but I don't know how to do that.  The arguments of the RadAjaxManager_AjaxRequest don't give me access to the EditForm of the Grid.

1 Answer, 1 is accepted

Sort by
0
Marin
Telerik team
answered on 14 Jul 2011, 01:43 PM
Hi Stephen,

 One option would be if you have direct access to the grid inside the AjaxRequest event then you can iterate the grid items and get the one in edit mode and then rebind the dropdown inside it. Information on Referencing controls in grid row/edit form can be found here.

Kind regards,
Marin
the Telerik team

Register for the Q2 2011 What's New Webinar Week. Mark your calendar for the week starting July 18th and book your seat for a walk through of all the exciting stuff we will ship with the new release!

Tags
Grid
Asked by
Stephen
Top achievements
Rank 1
Answers by
Marin
Telerik team
Share this question
or