Kenneth Jackson
Posted
on Feb 11, 2009
(permalink)
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 ?
Reply
Answer
Victor
Victor
Posted
on Feb 11, 2009
(permalink)
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.
Reply
Kenneth Jackson
Posted
on Feb 11, 2009
(permalink)
Thanks for answering so quickly.
The problem appears sorted.
Reply