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

RadPane AutoHideWidth AutoHideHeight reset to 0 after pinning

4 Answers 58 Views
Docking
This is a migrated thread and some comments may be shown as answers.
arthurd
Top achievements
Rank 1
arthurd asked on 08 Jun 2011, 09:28 PM
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?

Thanks.

4 Answers, 1 is accepted

Sort by
0
Miroslav Nedyalkov
Telerik team
answered on 09 Jun 2011, 10:12 AM
Hi Arthurd,

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

Hope this helps.

Greetings,
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
0
arthurd
Top achievements
Rank 1
answered on 09 Jun 2011, 12:34 PM
Thank you. Those events worked fine for saving and restoring the auto size values.
0
Peter
Top achievements
Rank 1
answered on 14 Feb 2014, 11:51 AM
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?
0
Vladi
Telerik team
answered on 19 Feb 2014, 09:41 AM
Hi,

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.

Regards,
Vladi
Telerik
Tags
Docking
Asked by
arthurd
Top achievements
Rank 1
Answers by
Miroslav Nedyalkov
Telerik team
arthurd
Top achievements
Rank 1
Peter
Top achievements
Rank 1
Vladi
Telerik team
Share this question
or