Welcome Guest Search | Active Topics | Sign In | Register

DataGrid and Dialog Options
John
Posted: Monday, February 2, 2009 2:21:35 PM
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
eo_support
Posted: Monday, February 2, 2009 2:28:17 PM
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!


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.