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

LoadXML and SaveXML using (Memory)Stream

3 Answers 178 Views
Treeview
This is a migrated thread and some comments may be shown as answers.
Jill-Connie Lorentsen
Top achievements
Rank 1
Jill-Connie Lorentsen asked on 27 Mar 2009, 10:02 AM

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!

3 Answers, 1 is accepted

Sort by
0
Victor
Telerik team
answered on 30 Mar 2009, 12:53 PM
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,
Victor
the Telerik team

Check out Telerik Trainer , the state of the art learning tool for Telerik products.
0
Joe Sugden
Top achievements
Rank 1
answered on 09 Apr 2012, 05:11 PM
Has this problem been fixed yet?
0
Stefan
Telerik team
answered on 12 Apr 2012, 12:30 PM
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.
 
Regards,
Stefan
the Telerik team
RadControls for WinForms Q1'12 release is now live! Check out what's new or download a free trial >>
Tags
Treeview
Asked by
Jill-Connie Lorentsen
Top achievements
Rank 1
Answers by
Victor
Telerik team
Joe Sugden
Top achievements
Rank 1
Stefan
Telerik team
Share this question
or