Is there a way to create new radwindows from the clientside via javascript so they are configured before being displayed?
I want to set their behaviour and size and position based on whats been passed to the javascript function that creates the window before it gets displayed.
Whenever I call the radopen or radwindow.open functions it displays the window before I can configure it which results in some ugly post-display changes.
This is what I currently have...
Is there a way for me to create a new radwindow, set its properties, attach it to the radwindowmanager and then display it?
I want to set their behaviour and size and position based on whats been passed to the javascript function that creates the window before it gets displayed.
Whenever I call the radopen or radwindow.open functions it displays the window before I can configure it which results in some ugly post-display changes.
This is what I currently have...
| // retrieve the radwindowmanager for the page |
| var oManager = null; |
| function mainOpenWindow(name, url, winid, buttons, tabs, width, height, left, top, pinned) { |
| /* |
| This function dynamically creates a new rad window configured in a curtain way |
| url: target url for inner window |
| winid: id for the window |
| buttons: what buttons to display |
| tabs: 0 = use tabs, 1 = use new window |
| width, height, left, top: window position |
| pinned: is window pinned |
| */ |
| if (!oManager) oManager = GetRadWindowManager(); |
| var oWindow = oManager.open(url, null); |
| oWindow.set_behaviors(buttons); |
| } |
Is there a way for me to create a new radwindow, set its properties, attach it to the radwindowmanager and then display it?