RadDocking Save and Load Layout

3 posts, 0 answers
  1. Fanindra
    Fanindra avatar
    4 posts
    Member since:
    May 2013

    Posted 15 Jan 2015 Link to this post

    I have tab control where I am adding RadDocking control and generating RadPanes dynamically in it . I wanted to save this layout and load this layout.

    I am working on Saving layout feature where I am facing issue in converting some attributes of RadPane in XML .By default is generates xml elements like

    <RadPane IsDockable="True" Title="title" Header="header" CanUserPin="False" /> 

    I want some attribute say Name="radPane1"  or Tag="Some data" so that it look like,

    <RadPane Name="radPane1" IsDockable="True" Title="title" Header="header" Tag="Some data" CanUserPin="False" />  

    Do we have control of adding attributes in this RadPane Element in XML ?

    Also for Loading layout need some working sample where I can able to load some component inRadDocking.

    Your help is really appreciate.

  2. Rakesh
    Rakesh avatar
    7 posts
    Member since:
    Oct 2014

    Posted 19 Jan 2015 in reply to Fanindra Link to this post

    Hi Fanindra,

    Yes, you can add tag to a rad pane like this :

    string tag = "some data" ;
    RadDocking.SetSerializationTag(radPane, tag);

    The same way, you can retrieve the tag.
    string serializationTag = RadDocking.GetSerializationTag(radPane);

    Hope this helps for you.

  3. Kalin
    Kalin avatar
    1360 posts

    Posted 19 Jan 2015 Link to this post

    Hi Fanindra,

    For sample Save/Load Layout example you check this demo from our XAML SDK repository as well as this example from our online Silverlight demos. However I'm afraid the Name and Tag properties are not persisted and with the current implementation of the control is not possible to save additional properties. What I can suggest you would be to use the SerializationTag persist the needed Name and Tag properties and load them from there afterwards (you can do that in the ElementLoading event handler).

    Hope this helps.


    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.

Back to Top