Scrolling

3 posts, 1 answers
  1. Kenneth Jackson
    Kenneth Jackson avatar
    60 posts
    Member since:
    Dec 2007

    Posted 11 Feb 2009 Link to this post

    I have created a number of usercontrols that I want to dynamically add to
    dockpanels based on user input -

    It's all straightforward enough but the users have varying screen sizes
    and some of the controls have a fair amount of height.
    My problem is I cannot get auto scroll bars when the contents of the docking
    panel exceed the boundaries. In your demo apps I see some of the windows
    do gain scroll bars when the contents exceed although not all do.

    Is there a property / method for the dockpanel that automatically creates scrollbars
    based on the contents in the dockpanel ? Or do we have to implement this
    ourselves manually ?

  2. Answer
    Victor
    Admin
    Victor avatar
    1358 posts

    Posted 11 Feb 2009 Link to this post

    Hello Kenneth Jackson,

    Thank you for your question.

    You have to set the AutoScroll property of all your DockPanels to true. The AutoScroll property is located under the Layout group in the property grid.

    I am sending you a sample application. All it does is to move the Calendar in the bottom DockPanel to top DockPanel by clicking the button.

    I hope this helps. Please write back if you have other questions.

    Greetings,
    Victor
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
  3. Kenneth Jackson
    Kenneth Jackson avatar
    60 posts
    Member since:
    Dec 2007

    Posted 11 Feb 2009 Link to this post

    Thanks for answering so quickly.

    The problem appears sorted.

Back to Top