LoadXML and SaveXML using (Memory)Stream

4 posts, 0 answers
  1. Jill-Connie Lorentsen
    Jill-Connie Lorentsen avatar
    118 posts
    Member since:
    Nov 2008

    Posted 27 Mar 2009 Link to this post

    When my application starts data is loaded into a treeview. The user then typically expands parts of the treeview, and then reloads the data to see if something new has appeared. I would like the expanded nodes to stay expanded after the reload.

    I've tried to use radtreeview. SaveXML(filename) and radtreeview.LoadXML(filename), and it works fine. But I don't want to read and write from a file, so I would like to use radtreeview.Save/LoadXML(stream) instead, but I can't figure out how to do it.

    It would be great if someone could share code which helps me accomplish this.

    Thank you very much!
  2. Victor
    Victor avatar
    1358 posts

    Posted 30 Mar 2009 Link to this post

    Hi Jill-Connie Lorentsen,

    Thank you for writing.

    Please excuse us for the inconvenience, there is an issue with the SaveXML and LoadXML methods. They close the streams passed to them(indirectly) which makes the methods useless. This problem will be addressed in our next release. Your Telerik points have been updated for helping us see the issue.

    Please write back if you have other questions.

    Sincerely yours,
    the Telerik team

    Check out Telerik Trainer , the state of the art learning tool for Telerik products.
  3. Joe Sugden
    Joe Sugden avatar
    54 posts
    Member since:
    Feb 2010

    Posted 09 Apr 2012 Link to this post

    Has this problem been fixed yet?
  4. Stefan
    Stefan avatar
    2908 posts

    Posted 12 Apr 2012 Link to this post

    Hi Joe,

    I was not able to find an item regarding this issue, in order to confirm whether it was fixed or not. However, I have performed some tests and it seems that it still appears. I am logging it and we will resolve it in the next release. Here is a link to the item, where you can add your vote for it and subscribe for its status updates:  http://www.telerik.com/support/pits.aspx#/public/winforms/10686.

    Let us know if you have any other questions.
    the Telerik team
    RadControls for WinForms Q1'12 release is now live! Check out what's new or download a free trial >>
Back to Top