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

Help With Treeview Template GetXml

1 Answer 71 Views
This is a migrated thread and some comments may be shown as answers.
Top achievements
Rank 1
Julie asked on 09 Jan 2009, 06:53 PM
I add controls to the tree at runtime, the tree renders fine, but I don't see the controls listed in the XML, I need to expose them, as I just want to store the xml in the database.

The Output from getXML....
<?xml version="1.0" encoding="utf-16"?>
<Tree AllowNodeEditing="True" CheckChildNodes="True" MultipleSelect="True" EnableDragAndDrop="True" EnableDragAndDropBetweenNodes="True" OnClientNodeEdited="OnClientNodeEditedHandler" OnClientNodeDropped="OnClientNodeDropped" OnClientNodeDragging="OnClientNodeDragging" AppendDataBoundItems="True" Skin="Outlook" EnableAjaxSkinRendering="False">
  <Node Text="root1" Expanded="True" />
  <Node Text="root2" Expanded="True" />
  <Node Text="root3" Expanded="True" />
  <Node Text="root4" Value="Templated" Expanded="True" />

the code:


protected void Page_Load(object sender, EventArgs e)



if (!Page.IsPostBack)





    this.RadTreeView1.AppendDataBoundItems = true;



    this.RadTreeView1.PersistLoadOnDemandNodes = true


    this.RadTreeView1.Nodes.Add(new RadTreeNode("root1"));



    this.RadTreeView1.Nodes.Add(new RadTreeNode("root2"));



    this.RadTreeView1.Nodes.Add(new RadTreeNode("root3"));



    RadTreeNode root4 = new RadTreeNode("root4");



    TextBox textbox1 = new TextBox();



    root4.Value =



    this. RadTreeView1.DataBind();






1 Answer, 1 is accepted

Sort by
Atanas Korchev
Telerik team
answered on 10 Jan 2009, 09:28 AM
Hello Julie,

This is not supported by RadTreeView for the time being. Controls in the template are not serialized in XML.

the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Asked by
Top achievements
Rank 1
Answers by
Atanas Korchev
Telerik team
Share this question