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

how to make floating RadPane back to dockable from code behind?

4 Answers 253 Views
Docking
This is a migrated thread and some comments may be shown as answers.
Chinmaya
Top achievements
Rank 1
Chinmaya asked on 11 Dec 2014, 10:18 AM
Hi,

I am trying to Initially create RadPane from code behind and set RadPane property to MakeFloatingOnly() and after that back to MakeDockable().

but I learnt that MakeFloatingOnly() removes the RadPane from the RadPaneGroup, so it's not working for me !!!!!.

Is there a workaround for this situation?

Regards,
Chinmaya

4 Answers, 1 is accepted

Sort by
0
Nasko
Telerik team
answered on 12 Dec 2014, 03:24 PM
Hi Chinmaya,

The MakeFloatingOnly method of RadPane is used to make the pane floating programmatically. However, if that method is used the pane could not be docked back again using drag and drop. In order to make it dockable again the MakeDockable method should be used. 

If you want to programmatically dock a RadPane (ToolWindow) to a group first it should be removed from its current parent  and then add it to the RadPaneGroup's Items collection:
 
radPane.RemoveFromParent();
radPaneGroup.Items.Add( radPane );

Please, check the following article from our help documentation that provides more detailed information about the described above methods and approach:
http://docs.telerik.com/devtools/wpf/controls/raddocking/features/panes/docked-floating-panes

Hopes this will help you.

Regards,
Nasko
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
0
Chinmaya
Top achievements
Rank 1
answered on 12 Dec 2014, 03:37 PM
Hi Nasko,

Thank you for your reply, but it is still not clear to how can I get the reference of the panes (ToolWindow) which are created as MakeFloatingOnly.  To add it back to radPaneGroup.

Thanks in advance!
Chinmaya
0
Nasko
Telerik team
answered on 15 Dec 2014, 04:30 PM
Hi Chinmaya,

From the provided details we assume that you want to dock the panes that are floating but not dockable. Please, check the sample project we are sending you that demonstrates how to achieve that approach. However, if that's not case could you please provide us some more information about your scenario in order to provide you with a prompt solution.

Hopes this helps.

Regards,
Nasko
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
0
Chinmaya
Top achievements
Rank 1
answered on 16 Dec 2014, 03:57 PM
Hi Nasko,

Thank you for the example project, that's exactly what I was looking for.

Regards,
Chinmaya
Tags
Docking
Asked by
Chinmaya
Top achievements
Rank 1
Answers by
Nasko
Telerik team
Chinmaya
Top achievements
Rank 1
Share this question
or