Rank: Member Groups: Member
Joined: 1/2/2009 Posts: 12
|
I open a dialog from a link contained in a datagrid. Is it possiple to rebind the datagrid when the diapog is closed? The dialog has the ability to edit and delete records displayed by the datagrid.
Thanks
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,194
|
Hi,
Yes. The basic solution is to place a regular ASP.NET button in the dialog so that when you click the button, the page posts back. The key at here is that you are not closing the dialog, but are actually posting back the page. Once the page is posted back, the dialog is automatically destroyed (because the whole page is being reloaded) and the grid is rebound.
Once you have this basic solution working, you can take it further by AJAX-enabling it with our CallbackPanel. This step no longer have anything to do with the dialog or the Grid.
Hope this helps.
Thanks!
|