I have a function that will change the page of the current radwindow, or open a new one to the provided url. I have 2 questions regarding this function.
#1 - I recently noticed that my modal settings were getting changed after updating the url of the window. I would start with a non-modal window, click the button that triggers the change and have the window immediately go modal upon redirecting the url. I narrowed it down the the GetRadWindow().show() line being the culprit. What does show() do? The script still seems to work without it...is it necessary?
#2 - Can I change the window behaviors at the same time I'm setting the new url? Some of the destinations require the reload window and no close button when coming from the initial window that only has close.
Using version 2008.1.515.20.
function ChangePage(FileName) |
{ |
if (window.frameElement) { |
// A window is already open - Redirect |
GetRadWindow().SetUrl(FileName); |
// Resize the window |
var curWindowSize = GetRadWindow().getWindowBounds(); |
GetRadWindow().center(); |
GetRadWindow().setSize(width,height); |
GetRadWindow().set_modal(modal); |
//GetRadWindow().show(); |
} else { |
// No window - open a new one |
openRadWindow(FileName,height,width,modal,0,1,1,qty); |
} |
} |
#1 - I recently noticed that my modal settings were getting changed after updating the url of the window. I would start with a non-modal window, click the button that triggers the change and have the window immediately go modal upon redirecting the url. I narrowed it down the the GetRadWindow().show() line being the culprit. What does show() do? The script still seems to work without it...is it necessary?
#2 - Can I change the window behaviors at the same time I'm setting the new url? Some of the destinations require the reload window and no close button when coming from the initial window that only has close.
Using version 2008.1.515.20.