Here is my scenario:
- I have a User Control and a RadGrid on a page.
- The RadGrid has and Add New link button in the CommandItemTemplate
- Each row in the grid has an Edit and a Delete Button.
- My entire Grid is ajaxified to update my user control as such:
RadAjaxManager.AjaxSettings.AddAjaxSetting(DebtorsGrid, QueueItemDetailsUserControl);
- When the user Deletes a row in the grid, I run server side code that dynamically builds my user control (recreates all of the controls in the user control).
- I do NOT run that same code when a user does an Edit or an Add New in the grid, so the user control does not get updated.
- Currently, when the user Deletes a row from the grid, my code runs that rebuilds my user control, and after the ajax postback occurs, my user control is correctly updated / displayed.
My problem though is that when I do an Edit or an Add New in the grid, my control is empty after the postback. Since I don't dynamically build it on Edit or Add New, I guess I lose the "state" of my user control.
My goal would be to ONLY ajaxify the grid's Delete button and my user control, rather than ajaxify the entire grid.
Is that possible?
Thanks,
Brent
- I have a User Control and a RadGrid on a page.
- The RadGrid has and Add New link button in the CommandItemTemplate
- Each row in the grid has an Edit and a Delete Button.
- My entire Grid is ajaxified to update my user control as such:
RadAjaxManager.AjaxSettings.AddAjaxSetting(DebtorsGrid, QueueItemDetailsUserControl);
- When the user Deletes a row in the grid, I run server side code that dynamically builds my user control (recreates all of the controls in the user control).
- I do NOT run that same code when a user does an Edit or an Add New in the grid, so the user control does not get updated.
- Currently, when the user Deletes a row from the grid, my code runs that rebuilds my user control, and after the ajax postback occurs, my user control is correctly updated / displayed.
My problem though is that when I do an Edit or an Add New in the grid, my control is empty after the postback. Since I don't dynamically build it on Edit or Add New, I guess I lose the "state" of my user control.
My goal would be to ONLY ajaxify the grid's Delete button and my user control, rather than ajaxify the entire grid.
Is that possible?
Thanks,
Brent