Edit this page

Cloning a RadTreeView

To clone a Tree, use the GetXml() and LoadXmlString() methods of RadTreeView.

<telerik:RadTreeView RenderMode="Lightweight" ID="RadTreeView1" runat="server">
    <Nodes>
        ...
    </Nodes>
</telerik:RadTreeView>
<telerik:RadTreeView RenderMode="Lightweight" ID="RadTreeView2" runat="server">
</telerik:RadTreeView>
<asp:Button ID="Button1" runat="server" OnClick="Button1_Click" Text="Button" />
RadTreeView2.LoadXmlString(RadTreeView1.GetXml());
RadTreeView2.LoadXmlString(RadTreeView1.GetXml())