RadPane AutoHideWidth AutoHideHeight reset to 0 after pinning

5 posts, 0 answers
  1. arthurd
    arthurd avatar
    18 posts
    Member since:
    Aug 2007

    Posted 08 Jun 2011 Link to this post

    In my ui, I allow the user to specify the auto hide size of the RadPane(s) [for unpinned] and the size of the RadSplitContainer(s) [for pinned].

    If a user pins the RadPane, the AutoHideWidth and AutoHideHeight are set to 0 so after unpinning, the auto size is now back to a system default instead of my user specified value.

    I have application wide buttons that allow the user to pin or unpin all RadPane(s). This gives me an easy place to store the current auto size before pinning and restore the size when unpinning. So this works fine if the user uses my buttons.

    But if the user uses the pin on the RadPane itself, I have no way of getting this notification (that I know of).

    So the question is, is there an event I can register for that will tell me if a RadPane is about to be pin or unpinned.

    Or is there a different way to handle the AutoHideWidth/AutoHideHeight being reset to 0?

  2. Miroslav Nedyalkov
    Miroslav Nedyalkov avatar
    1718 posts

    Posted 09 Jun 2011 Link to this post

    Hi Arthurd,

     The Docking control has events PreviewUnpin and Unpin which are fired before and after actual unpinning.

    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. arthurd
    arthurd avatar
    18 posts
    Member since:
    Aug 2007

    Posted 09 Jun 2011 Link to this post

    Thank you. Those events worked fine for saving and restoring the auto size values.
  4. Peter
    Peter avatar
    37 posts
    Member since:
    Dec 2011

    Posted 14 Feb 2014 in reply to Miroslav Nedyalkov Link to this post

    These events may work, but is there no more conventient way to set the width of a pane.

    I have a PaneGroup with several RadPanes and each one has a different width, that should be maintained if the pane is pined, unpined or floating. How do I do that?
  5. Vladi
    Vladi avatar
    749 posts

    Posted 19 Feb 2014 Link to this post


    In the current version of RadDocking persisting the size of Panes in all different Pane states is not possible. For more details please refer this forum post.

    The described approach with the use of the PreviewUnpin event could be used to implement a custom persistence of the desired sizes.

Back to Top