How to set the width of individual panes and groups?

2 posts, 0 answers
  1. Sam
    Sam avatar
    4 posts
    Member since:
    Jan 2009

    Posted 28 Jul 2010 Link to this post


    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

  2. Miroslav Nedyalkov
    Miroslav Nedyalkov avatar
    1718 posts

    Posted 30 Jul 2010 Link to this post

    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!

    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
  3. DevCraft R3 2016 release webinar banner
Back to Top