How to expand window or enable scrollbars??

5 posts, 0 answers
  1. Robert
    Robert avatar
    199 posts
    Member since:
    Aug 2009

    Posted 01 Oct 2009 Link to this post

    I have a window that causes the content to expand and thus I need to either havethis window automatically increase in size or enable the scrollbars. I can't seem to get this working.

    The case I am using is for .net validators... when validation fires, content is pushed below the bottom of the window.   
  2. Shinu
    Shinu avatar
    17764 posts
    Member since:
    Mar 2007

    Posted 05 Oct 2009 Link to this post

    Hello Robert,

    Have you tried setting AutoSize property of RadWindowManager / RadWindow to True?
    Demo : Automatically Change Size
     
    -Shinu.
  3. Georgi Tunev
    Admin
    Georgi Tunev avatar
    7207 posts

    Posted 05 Oct 2009 Link to this post

    Hi Robert,

    RadWindow has an autoSize() client-side method that could be called when needed and will resize the window to fit the content. A sample usage of this method is shown in this demo where the method is called when the date picker is opened and closed.
    This being said, my suggestion is to use custom validator and to use its client-side API to call autoSize() after the validator's message is shown.


    Greetings,
    Georgi Tunev
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
  4. Robert
    Robert avatar
    199 posts
    Member since:
    Aug 2009

    Posted 05 Oct 2009 Link to this post

    Your demo is missing 6 files.  Default1.aspx, Default2.aspx,Default1.aspx.cs, Default2.aspx.cs,Default1.aspx.vb and Default2.aspx.vb

  5. Georgi Tunev
    Admin
    Georgi Tunev avatar
    7207 posts

    Posted 06 Oct 2009 Link to this post

    Hello Robert,

    You can examine all files' sources by selecting them in the toolbar of the Example Source Code & Description section (see attached screenshot).


    Regards,
    Georgi Tunev
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Back to Top