We have an "ADD" asp:LinkButton to add values inside a radwindow. We Use
OnClientClick="GetRadWindow().BrowserWindow.location.reload();GetRadWindow().Close()" to add the value and refresh the parent page.
using <asp:RequiredFieldValidator> if an error pops up after hitting the add linkbutton the window closes. Anyway to prevent the window for closing upon validation error? Looking to keep user inside radwindow to fix error before closing the window.
<code used to close radwindow>
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 az well)
return oWindow;
}
function CloseOnReload()
{
GetRadWindow().Close();
}
function RefreshParentPage()
{
GetRadWindow().BrowserWindow.location.reload();
}