Rad Window resize issue

2 posts, 0 answers
  1. Shinto
    Shinto avatar
    1 posts
    Member since:
    Dec 2012

    Posted 15 Mar 2013 Link to this post

    I have tried to re-size the form in  rad window  using the following script

     function pageLoad() {

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

    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..
  2. Marin Bratanov
    Marin Bratanov avatar
    3908 posts

    Posted 18 Mar 2013 Link to this post

    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.

    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.
Back to Top