im using a radgrid in my page with "edit" item template column. when i click edit a radwindow will be opened to edit that particular row information. when i click update the radwindow will be closed and the parent page will be refreshed. it is working fine for the first page. But if im trying the same for the next pages it is giving error "Microsoft JScript runtime error: 'this._windows.length' is null or not an object" .
can you please tell me the solution for this.
The code for my parent page is: CreateGroup.aspx
<script language="javascript" type="text/javascript">
//show the window
function showDialog() {
//Force reload in order to guarantee that the onload event handler of the dialog which configures it executes on every show.
var oWnd = window.radopen(null, "DialogWindow");
oWnd.setUrl(oWnd.get_navigateUrl());
if (oWnd != null) {
oWnd.setUrl(oWnd.get_navigateUrl());
}
}
//dialog for Edit Group
function openRadEditWindow(Group_Id, Group_Name, Group_Desc) {
var oWnd = radopen("EditGroupDialog.aspx?Group_Id=" + Group_Id + "&Group_Name=" + Group_Name + "&Group_Desc=" + Group_Desc, "EditWindow");
oWnd.center();
}
// Called when a window is being closed.
function OnClientclose(radWindow) {
//to refresh the parent window
document.location.href=document.location.href;
}
</script>
Code for radwindow dialog page is:
<
script type="text/javascript">
//This code is used to provide a reference to the radwindow "wrapper"
function GetRadWindow() {
var oWindow = null;
if (window.radWindow) oWindow = window.radWindow;
else if (window.frameElement.radWindow) oWindow = window.frameElement.radWindow;
return oWindow;
}
function ConfigureDialog() {
//Get a reference to the radWindow wrapper
var oWindow = GetRadWindow();
}
function Cancel_Clicked()
{
var oWindow = GetRadWindow();
oWindow.close();
}
</script>