RadWindow newwindow = new RadWindow();
newwindow.ID =
"RadWindow2";
newwindow.NavigateUrl =
"~/ReasonForDisapproval.aspx?elementId=" + elementId + "&stateText=" + stateText + "&contentAvailability=" + contentAvailability;
newwindow.VisibleTitlebar =
true;
newwindow.Behaviors =
WindowBehaviors.Close;
newwindow.VisibleOnPageLoad = true;
//add the newly created RadWindow to the RadWindowManager
RadWindowManager1.Windows.Add(newwindow);
now in radwindow, after clicking on submit button i want to close the radwindow and refresh the grid from parent page, i am calling javascript function on submit button,
lblHeading.Text = "<script type='text/javascript'>CloseAndRebind()</" + "script>";
and my javascript function is
function
GetRadWindow()
{
var oWindow = null;
if (window.radWindow)
oWindow = window.RadWindow;
//Will work in Moz in all cases, including clasic dialog
else if (window.frameElement.radWindow)
oWindow = window.frameElement.radWindow;
//IE (and Moz as well)
return oWindow;
}
function CloseAndRebind()
{
GetRadWindow().BrowserWindow.refreshGrid(
null);
GetRadWindow().Close();
}
But its not closing radwindow and also not refreshing grid, its giving javascript error "object doesnt support this property or methods"
Earlier reply will be appreciated.
Thanks in advance
Suvarna