iSeller Commerce
iSeller POS Retail
iSeller POS F&B
iSeller POS Express
Crosslight
WebUI
ClientUI
What's New
Download Trial
Web Solution
Mobile Solution
Enterprise Solution
Custom Development
Blog
Community
Latest Development Blogs
ForumPostTopic
Browse By Tag
I have a web grid inside of a web pane. When a user clicks on a row a Web Dialog box is opened a more information is displayes regarding the item. The user can edit the information. When the Dialog box is closed, in the OnClosed event I call a client side refresh of the Web Grid. It processes for a second or two and then the whole browser is closed with an Unhandled Exception in iexplorer process.
/* Returns the Site Grid object */ function GetGrid(gridName) { var grid = ISGetObject(gridName); return (grid); } /* Refreshes the grid data and UI */ function RefreshGrid(grid) { grid.ClearSelectedObject(); grid.RootTable.UpdateUI(); grid.RefreshAll(); } /* Load the request editor dialog */ function LoadWorkScheduleEditorControl(editType, taskID, jobType) { if (_jobDialog == null) { _jobDialog = ISGetObject("DialogTaskEditor"); } var contentUrl = "Windows/Dialogs/" + jobType + "/WorkSchedule.aspx?method=" + editType + "&task=" + taskID; _jobDialog.ReuseIFrame = true; _jobDialog.SetContentURL(contentUrl); _jobDialog.ClientSideEvents.OnClosed = TaskEditor_OnClosed; _jobDialog.ShowDialog(); } /* Event handler for closing request editor dialog */ function TaskEditor_OnClosed(id, dialogResult) { try { _jobDialog.SetContentURL(_inactiveDialogURL); //this is where it fails and closes the browser RefreshGrid(GetGrid("WebGridTaskList")); } catch (e) { alert(e.Message); } } Any ideas?
/* Returns the Site Grid object */ function GetGrid(gridName) { var grid = ISGetObject(gridName); return (grid); } /* Refreshes the grid data and UI */ function RefreshGrid(grid) { grid.ClearSelectedObject(); grid.RootTable.UpdateUI(); grid.RefreshAll(); } /* Load the request editor dialog */ function LoadWorkScheduleEditorControl(editType, taskID, jobType) { if (_jobDialog == null) { _jobDialog = ISGetObject("DialogTaskEditor"); } var contentUrl = "Windows/Dialogs/" + jobType + "/WorkSchedule.aspx?method=" + editType + "&task=" + taskID; _jobDialog.ReuseIFrame = true; _jobDialog.SetContentURL(contentUrl); _jobDialog.ClientSideEvents.OnClosed = TaskEditor_OnClosed; _jobDialog.ShowDialog(); } /* Event handler for closing request editor dialog */ function TaskEditor_OnClosed(id, dialogResult) { try { _jobDialog.SetContentURL(_inactiveDialogURL); //this is where it fails and closes the browser RefreshGrid(GetGrid("WebGridTaskList")); } catch (e) { alert(e.Message); } }
Any ideas?
Once i took the grid out of the NavPane everything seemed to work. Still dont know what the problem was
Based on the snippet, I believe that you are trying to clear the selected row from WebGrid and Refresh all the data upon closing the WebDialogBox. If it is the case, you could try using this snippet in the RefreshGrid function:
function RefreshGrid(grid){ grid.ClearSelectedObject(true); grid.RefreshAll();}
Still crashes after changing to your suggestion.
Attached is a simple sample of the scenario you are describing. I could not replicate the issue using the sample in my environment. The test is done using all the latest build of WebGrid and WebDesktop.
Feel free to modify the sample so the issue could be replicated.
or
Choose this if you're already a member of Intersoft Community Forum. You can link your OpenID account to your existing Intersoft Social ID.
Choose this if you don't have an Intersoft account yet. Your authenticated OpenID will be automatically linked to your new Intersoft account.
Enter your Wordpress Blogname