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

5 posts, 0 answers
  1. Chinmaya
    Chinmaya avatar
    24 posts
    Member since:
    Aug 2014

    Posted 11 Dec 2014 Link to this post

    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
  2. Nasko
    Admin
    Nasko avatar
    587 posts

    Posted 12 Dec 2014 Link to this post

    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.

     
  3. DevCraft banner
  4. Chinmaya
    Chinmaya avatar
    24 posts
    Member since:
    Aug 2014

    Posted 12 Dec 2014 in reply to Nasko Link to this post

    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
  5. Nasko
    Admin
    Nasko avatar
    587 posts

    Posted 15 Dec 2014 Link to this post

    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.

     
  6. Chinmaya
    Chinmaya avatar
    24 posts
    Member since:
    Aug 2014

    Posted 16 Dec 2014 in reply to Nasko Link to this post

    Hi Nasko,

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

    Regards,
    Chinmaya
Back to Top
DevCraft banner