SerializationTag not restored after load

3 posts, 0 answers
  1. Paolo
    Paolo avatar
    423 posts
    Member since:
    Jun 2009

    Posted 21 Feb 2012 Link to this post

    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. Miroslav Nedyalkov
    Admin
    Miroslav Nedyalkov avatar
    1718 posts

    Posted 24 Feb 2012 Link to this post

    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 >>
  3. UI for WPF is Visual Studio 2017 Ready
  4. Paolo
    Paolo avatar
    423 posts
    Member since:
    Jun 2009

    Posted 24 Feb 2012 Link to this post

    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
Back to Top