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

How to set the width of individual panes and groups?

1 Answer 92 Views
Docking
This is a migrated thread and some comments may be shown as answers.
Sam
Top achievements
Rank 1
Sam asked on 28 Jul 2010, 05:49 PM
Hello

I have a pane that is docked to the right side of the screen initially. To set its initial width I use the DockingPanel.InitialSize attached property on the RadSplitContainer that contains the pane.

However, as soon as the user floats the window and then re-docks it, it takes up half the screen width.

Is there a way that I can re-set the width of either the Pane, PaneGroup, or SplitContainer as soon as it is redocked?

I have tried intercepting all the various events and setting the widths of items there, and I've tried using VisualStates in the themes. The only way I can seem to set the width of something apart from via the DockingPanel.InitialSize property, is via the MaxWidth property of the typed style for a RadPaneGroup in the theme. However, this means it gets set for all the panes, and not just the one on the right.

I've attached 3 images that show the steps. I need the panel on the right in 03 to return to the same width as in 01.

Any ideas please?

Thanks very much

Sam

1 Answer, 1 is accepted

Sort by
0
Miroslav Nedyalkov
Telerik team
answered on 30 Jul 2010, 11:00 AM
Hi Sam,

 The Docking control doesn't support this functionality out-of-the-box. What I could suggest you to implement this feature is to hook-up to the PaneStateChanged event of the Docking control or to the Loaded event of the content of the Pane you are interested in and find the root-level SplitContainer and change its size if needed.

Hope this helps!

Regards,
Miroslav Nedyalkov
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
Docking
Asked by
Sam
Top achievements
Rank 1
Answers by
Miroslav Nedyalkov
Telerik team
Share this question
or