This is a migrated thread and some comments may be shown as answers.

Set Radwindow height and width at the time on opning

1 Answer 1520 Views
Window
This is a migrated thread and some comments may be shown as answers.
Rahul
Top achievements
Rank 1
Rahul asked on 22 Aug 2013, 01:12 PM
I want to display rad window on button click . My button inside radgrid, when i click on button rad window will open but problem is i was not able to set width and height for windows.


Please help me urgent

1 Answer, 1 is accepted

Sort by
0
A2H
Top achievements
Rank 1
answered on 22 Aug 2013, 01:45 PM
Hi,

You can use the setSize method to set the height and width of RadWindow while opening

Please try the below implementation
function OpenRadWindow() {
                var oWnd = $find("<%= DialogWindow.ClientID %>");
                oWnd.show();
                //Here set the width and height of RadWindow
                oWnd.setSize(400, 100);
                oWnd.setUrl("http://www.google.com");
                oWnd.minimize();
                oWnd.maximize();
                oWnd.restore();
            }

Check the below link for more details

Apart from the this you can use

·         set_height
·         set_width

methods to set the height and width of RadWindow



Thanks,
A2H
Tags
Window
Asked by
Rahul
Top achievements
Rank 1
Answers by
A2H
Top achievements
Rank 1
Share this question
or