Kinda new to telerik.
I have a page with a windowmanager, radwindow, and a customcontrol on it.
the customcontrol uses javascript to open the control on the parent page like so
function
UseRadWindowOnParentPage(DialogURL,RadWindowID, Width, Height, Title, argument) {
var
oManager = GetRadWindowManager();
var
oWnd = oManager.GetWindowByName(RadWindowID);
oWnd.Show();
oWnd.SetSize(Width, Height);
oWnd.SetUrl(DialogURL);
oWnd.SetTitle(Title);
oWnd.Center();
oWnd.argument = argument;
oWnd.OnClientClose =
function
() {
alert(
'client close'
);
}
}
oWnd.OnClientClose never fires.
Any idea whats going on?
If i set the OnClientClose property in the radwindow control it works. The radwindow is used several times and not everything is supposed to have a onclientclose event.
I know I could add a radwindow for every popup I need but I got it this far and would prefer to reuse 1 radwindow rather than adding 6 radwindows where the only real difference is the OnClientClose
http://www.telerik.com/help/aspnet/window/radwindowobjectclientside.html so far, most everything I have tried from this link works.
thanks