Hello,
I used the following script for open the radwindow from another radwindow. It is work but i want to size(width,height) the window.
I can't unsertand how to set the size in this script.
<telerik:RadScriptBlock runat="server" ID="test1_script">
<script type="text/javascript">
var test1Wnd;
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 && window.frameElement.radWindow)
oWindow = window.frameElement.radWindow; //IE (and Moz as well)
return oWindow;
}
function open_fromTest1() {
var oBrowserWindow = GetRadWindow();
if (oBrowserWindow) oBrowserWindow = oBrowserWindow.BrowserWindow;
if (oBrowserWindow == null) {
window.radopen("Default2.aspx" + "", "NewWindow1");
}
else {
setTimeout(function() {
test1Wnd = oBrowserWindow.radopen("Default2.aspx", "NewWindow1");
}, 0);
}
}
</script>
</telerik:RadScriptBlock>
and I used the RadButton:
<telerik:RadButton ID="cmdPrint" runat="server" SkinID="Button" AutoPostBack="false" Text="Print Prescription" OnClientClicked="open_fromTest1" />
I also added this: window.onresize(600, 1000);
It is not work.
Please help me as soon as possible.
Thanks and Regards
Jiten Mutum
I used the following script for open the radwindow from another radwindow. It is work but i want to size(width,height) the window.
I can't unsertand how to set the size in this script.
<telerik:RadScriptBlock runat="server" ID="test1_script">
<script type="text/javascript">
var test1Wnd;
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 && window.frameElement.radWindow)
oWindow = window.frameElement.radWindow; //IE (and Moz as well)
return oWindow;
}
function open_fromTest1() {
var oBrowserWindow = GetRadWindow();
if (oBrowserWindow) oBrowserWindow = oBrowserWindow.BrowserWindow;
if (oBrowserWindow == null) {
window.radopen("Default2.aspx" + "", "NewWindow1");
}
else {
setTimeout(function() {
test1Wnd = oBrowserWindow.radopen("Default2.aspx", "NewWindow1");
}, 0);
}
}
</script>
</telerik:RadScriptBlock>
and I used the RadButton:
<telerik:RadButton ID="cmdPrint" runat="server" SkinID="Button" AutoPostBack="false" Text="Print Prescription" OnClientClicked="open_fromTest1" />
I also added this: window.onresize(600, 1000);
It is not work.
Please help me as soon as possible.
Thanks and Regards
Jiten Mutum