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

[Solved] Copy an entire tree

2 Answers 105 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
Ed
Top achievements
Rank 1
Ed asked on 02 Jun 2009, 04:23 PM
Hi there,

What's the best way to make a server-side copy of an entire RadTreeView object (in C#) -- i.e., all nodes, attributes and everything else?

Thanks,

Ed Graham

2 Answers, 1 is accepted

Sort by
0
Accepted
Atanas Korchev
Telerik team
answered on 02 Jun 2009, 04:29 PM
Hello Ed,

You can use the GetXml method to get the XML representation of the treeview. Then use the LoadXml method to populate a treeview from xml string.

I hope this helps,
Albert
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
Ed
Top achievements
Rank 1
answered on 02 Jun 2009, 04:37 PM
Nice one, Albert -- that seems to have done the trick.
Tags
TreeView
Asked by
Ed
Top achievements
Rank 1
Answers by
Atanas Korchev
Telerik team
Ed
Top achievements
Rank 1
Share this question
or