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

SerializationTag not restored after load

2 Answers 58 Views
PersistenceFramework
This is a migrated thread and some comments may be shown as answers.
Michele
Top achievements
Rank 2
Michele asked on 21 Feb 2012, 03:49 PM
Hello,
I use the two methods provided in the sample for saving a raddocking

private string SaveLayoutAsString(RadDocking instance)
     {
         MemoryStream stream = new MemoryStream();
         instance.SaveLayout(stream,true);
 
         stream.Seek(0, SeekOrigin.Begin);
 
         StreamReader reader = new StreamReader(stream);
         return reader.ReadToEnd();
     }
 
     private void LoadLayoutFromString(string xml, RadDocking instance)
     {
         using (Stream stream = new MemoryStream(Encoding.UTF8.GetBytes(xml)))
         {
             stream.Seek(0, SeekOrigin.Begin);
             instance.LoadLayout(stream,true);
         }
     }

When I restore to the saved status I've the SerializationTag to null (I've also tried to set the tag field but it's the same, it's not serialized)
Any suggestion, reason it's happening?

Thanks

2 Answers, 1 is accepted

Sort by
0
Miroslav Nedyalkov
Telerik team
answered on 24 Feb 2012, 11:48 AM
Hello Paolo,

Could you please give us some more details on the issue you have - the SerailizationTag of which element do you find to be missing, is this SerializationTag set in XAML or in code behind?

If you could open a support ticket and send a sample project that demonstrates this matter this would be of great help.

Kind regards,
Miroslav Nedyalkov
the Telerik team
Sharpen your .NET Ninja skills! Attend Q1 webinar week and get a chance to win a license! Book your seat now >>
0
Michele
Top achievements
Rank 2
answered on 24 Feb 2012, 01:39 PM
Hello Miroslav,
I loose the one in the codebehind, btw won't they be the same? I've just opened a ticket (Alex F.) is looking at it, so you've just a demo if you want to check...

Thanks
Tags
PersistenceFramework
Asked by
Michele
Top achievements
Rank 2
Answers by
Miroslav Nedyalkov
Telerik team
Michele
Top achievements
Rank 2
Share this question
or