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

Rad Window resize issue

1 Answer 43 Views
Window
This is a migrated thread and some comments may be shown as answers.
Shinto
Top achievements
Rank 1
Shinto asked on 15 Mar 2013, 10:54 AM
I have tried to re-size the form in  rad window  using the following script

 function pageLoad() {

                var activeWin = GetRadWindow();
                if (!activeWin) return;

                activeWin.Restore();
                activeWin.set_height(409);
                activeWin.set_width(700);
                activeWin.center();
            }
Its working with this height but when i am trying to increase height(ie.  say activeWin.set_height(415) ) the form height in the rad window is getting reset.

please help me to find the solution..

1 Answer, 1 is accepted

Sort by
0
Marin Bratanov
Telerik team
answered on 18 Mar 2013, 11:37 AM
Hello Shinto,

For resizing a RadWindow I advise that you use the setSize(width, height) method it exposes. Also, you should disable autosizing because it can interfere with the dimensions you provide.

That aside I am not sure I understand what you mean with "the form height in the rad window is getting reset" - does the page inside revert to the default height that is 300px - the titblebar and statusbar? Or does your page simply not change with the RadWindow? If it is the former then there is most likely some code in another handler that resets the RadWindow dimensions, or there is a RestictionZone set and this does not allow the popup to increase its height. In case it is the latter then it seems the form inside is not configured for dynamic heights which should start with a rule like this html, body, form { height: 100%, margin: 0; padding: 0; } in the content page.


Greetings,
Marin Bratanov
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
Tags
Window
Asked by
Shinto
Top achievements
Rank 1
Answers by
Marin Bratanov
Telerik team
Share this question
or