Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
Refresh WebDataGrid

I have these 2 functions that open a WebDialogWindow from a WebDataGrid.

Client side
function WebDataGrid1_DblClickHandler(sender, e) {            
      var grid = $find('<%= WebDataGrid1%>');
      var gridBehaviors = grid.get_behaviors();
      var row = gridBehaviors.get_selection().get_selectedRows().getItem(0);
      var rowId = row.get_dataKey()
      var dialog = $find('<%= WDWIns.ClientID %>');
      dialog.get_contentPane().set_contentUrl('management.aspx?key=' + rowId);

Server side
Private Sub WebDataGrid1_ItemCommand(sender As Object, e As HandleCommandEventArgs) Handles WebDataGrid1.ItemCommand
      Dim commandArgument As Object = e.CommandArgument
      Dim key As String = commandArgument.ToString
      Dim url As String = "management.aspx?key=" + key
      WDWIns.ContentPane.ContentUrl = url
      WDWIns.WindowState = Infragistics.Web.UI.LayoutControls.DialogWindowState.Normal
End Sub

When the user is done making changes to the data on the WebDialogWindow I close the window using this function.

function closeDialogs() {
     var win = window.parent;                
     var dialog = win.$find('WDWIns');
     if (dialog) {

Becasuse the user has made changes to the data, I need to refresh the WebDataGrid. How can I do that?

Thanks, Pat

Top Replies