Hi,
I have the following javascript method to create a RadWindow.
The problem is that I have a page with a lot of graphs. If the button that calls the above javascript is clicked before the page is done loading then oWnd is null and the size does not get set. The window still opens correctly but the size is something like 50x50 instead of 800x600.
Is there a simple or preferred way to handle this?
I have the following javascript method to create a RadWindow.
function
ShowModalWindow(cLinkName, args, width, height)
{
var
oWnd = radopen(cLinkName,
"ModalDialog"
);
if
(oWnd !=
null
)
{
if
(width !=
null
)
oWnd.SetSize(width, height);
oWnd.Center();
var
arg =
new
Object();
//Using an Object as a argument is convenient as it allows setting many properties.
arg.descriptionValue = args;
oWnd.Argument = arg;
}
radWindow = oWnd;
}
The problem is that I have a page with a lot of graphs. If the button that calls the above javascript is clicked before the page is done loading then oWnd is null and the size does not get set. The window still opens correctly but the size is something like 50x50 instead of 800x600.
Is there a simple or preferred way to handle this?