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

Scrolling

2 Answers 71 Views
Dock
This is a migrated thread and some comments may be shown as answers.
Kenneth Jackson
Top achievements
Rank 1
Kenneth Jackson asked on 11 Feb 2009, 12:28 PM
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 Answers, 1 is accepted

Sort by
0
Accepted
Victor
Telerik team
answered on 11 Feb 2009, 12:53 PM
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.
0
Kenneth Jackson
Top achievements
Rank 1
answered on 11 Feb 2009, 07:59 PM
Thanks for answering so quickly.

The problem appears sorted.

Tags
Dock
Asked by
Kenneth Jackson
Top achievements
Rank 1
Answers by
Victor
Telerik team
Kenneth Jackson
Top achievements
Rank 1
Share this question
or