I am opening a RadWindow from another RadWindow. The child window is a delete confirmation window. If the user confirms, I need to update a grid on the parent window's page. I am doing this on numerous other pages without a problem. However for some reason it does not work for me on this page.
Here is my code for opening the window:
Here is my code on the child page for updating the grid on the parent page:
Here is my code for attempting to update the grid on the parent page:
I am calling the refreshIndexGrid in the code behind using:
Thanks.
Seth
Here is my code for opening the window:
| function ShowItemTypeIndexDeleteForm(indexAssignmentID, indexID) | |
| { | |
| GetRadWindow().BrowserWindow.radopen("ItemTypeIndexDelete.aspx?IndexAssignmentID=" + indexAssignmentID + "&IndexID=" + indexID, "rwIndexDelete"); | |
| return false; | |
| } | |
Here is my code on the child page for updating the grid on the parent page:
| function CloseAndRebind() |
| { |
| GetRadWindow().Close(); |
| GetRadWindow().BrowserWindow.refreshIndexesGrid('Rebind'); |
| } |
| function GetRadWindow() |
| { |
| var oWindow = null; |
| if (window.radWindow) |
| { |
| oWindow = window.radWindow; |
| } |
| else if (window.frameElement.radWindow) |
| { |
| oWindow = window.frameElement.radWindow; |
| } |
| return oWindow; |
| } |
Here is my code for attempting to update the grid on the parent page:
| function AjaxRequestMethod(target, arguments) | |
| { | |
| var ajaxManager = $find("<%= ramMain.ClientID %>"); | |
| ajaxManager.ajaxRequestWithTarget(target, arguments); | |
| } | |
| function refreshIndexesGrid(arg) | |
| { | |
| AjaxRequestMethod('<%= rgAssignedIndexes.UniqueID %>', 'Rebind'); | |
| } | |
I am calling the refreshIndexGrid in the code behind using:
| InjectScript.Text = "<script type='text/javascript'>CloseAndRebind('Rebind')</" & "script>" |
Thanks.
Seth