Prevent temporarily resizing of radwindow from showing up

7 posts, 1 answers
  1. JEAN DAVID ELBAZE
    JEAN DAVID ELBAZE avatar
    4 posts
    Member since:
    Jun 2009

    Posted 29 Jun 2009 Link to this post

    Hi everyone.

    As many of you already know, there is a temporary resizing of the rad windows before it is resized and centered. I have read that Telerik had included this for some future development.

    Can someone please tell me if this is already available or how to use it?
    btw, I am using Telerik 2009.1.311.35.

    Thanks in advance.
    YA
  2. Fiko
    Admin
    Fiko avatar
    1406 posts

    Posted 29 Jun 2009 Link to this post

    Hi JEAN,

    This functionality was implemented in the RadWindow control in the Q1 2009 release (the version that you use) and you can run it by setting the AutoSize property to "true". Also, you can observe this functionality in action on this demo page.

    I hope this helps.

    Best wishes,
    Fiko
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
  3. JEAN DAVID ELBAZE
    JEAN DAVID ELBAZE avatar
    4 posts
    Member since:
    Jun 2009

    Posted 29 Jun 2009 Link to this post

    Hi again.

    Ya, thats fine. But what about the following scenerio :

    I click a link on a page which opens a radwindow with the radopen command.
    The radwindow is initially set at 200x200px at design mode and it is used everywhere in my web site, that is, the content of the window varies and hence the size is set dynamically by the autosize property.

    However, on clicking the link, the radwindow appears with an initial size and after the content is determined, it is resized accordingly, which is very good. But is there a way to prevent the radwindow from showing that initial size at the start? Some sort of hiding it and showing it once the final size is determined?

    I tried using the hide and show command, but that doesn't works correctly.

    Thanks!


  4. Answer
    Fiko
    Admin
    Fiko avatar
    1406 posts

    Posted 30 Jun 2009 Link to this post

    Hi JEAN,

    You can achieve the desired result by using the client side API of the RadWindow control. For your convenience I have attached a sample that shows the steps in order to show the RadWindow after it is already resized.

    I hope this helps.

    Sincerely yours,
    Fiko
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
  5. JEAN DAVID ELBAZE
    JEAN DAVID ELBAZE avatar
    4 posts
    Member since:
    Jun 2009

    Posted 01 Jul 2009 Link to this post

    Hello Fiko.

    This sample project works wonderfully! Thanks!

    However, I would like to add something:
    The oWindow..hide() and oWindow..show() triggers the popin's body onload event twice.
    I had to remove those 2 lines because it is clearly noticeable that the page is loading twice (in my case).

    Can I know the reason of using these 2 lines?
    After removing those lines, I cannot notice the difference in the results obtained.

    Thanks again for your useful help!
  6. Fiko
    Admin
    Fiko avatar
    1406 posts

    Posted 01 Jul 2009 Link to this post

    Hello JEAN,

    I used these two lines in order to avoid a possible sliding behavior when you use moveTo() function, but such a behavior does not appear and you can remove oWindow.show() and oWindow.hide() functions without any problem. This was my omission and I thank you for the feedback.

    Please do not hesitate to contact us if you have any further questions.

    Best wishes,
    Fiko
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
  7. JEAN DAVID ELBAZE
    JEAN DAVID ELBAZE avatar
    4 posts
    Member since:
    Jun 2009

    Posted 02 Jul 2009 Link to this post

    ;)

    Cheers!
Back to Top