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

RadDocking Save and Load Layout

2 Answers 77 Views
Docking
This is a migrated thread and some comments may be shown as answers.
Fanindra
Top achievements
Rank 1
Fanindra asked on 15 Jan 2015, 06:25 AM
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.

Thanks

2 Answers, 1 is accepted

Sort by
0
Rakesh
Top achievements
Rank 1
answered on 19 Jan 2015, 06:30 AM
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.

Regards,
Rakesh
0
Kalin
Telerik team
answered on 19 Jan 2015, 01:09 PM
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.

Regards,
Kalin
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.

 
Tags
Docking
Asked by
Fanindra
Top achievements
Rank 1
Answers by
Rakesh
Top achievements
Rank 1
Kalin
Telerik team
Share this question
or