I am trying to create a tree view like on this page:
http://demos.telerik.com/aspnet-ajax/treeview/examples/functionality/templates/defaultcs.aspx
Here is my code:
As you can see I am trying to create it dynamically. I have two tree views: CusTree and WipTree. My problem is that when I add nstdNode (that contains the template node) to the CusTree nodes, it only shows the nstdNode appended to the last Node of CusTree. I am in a fix as what could be the problem. Can you please help me with this ASAP??
http://demos.telerik.com/aspnet-ajax/treeview/examples/functionality/templates/defaultcs.aspx
Here is my code:
CusTree.DataSource = tblDataCusTree.DataTextField = "CUSTOMER_NAME"CusTree.DataValueField = "CUSTOMER_PREFIX"CusTree.DataBind()Dim nd As ITemplate = WipTree.NodeTemplate()Dim nstdNode As New RadTreeNodenstdNode.NodeTemplate = ndFor i As Integer = 1 To CusTree.Nodes.Count - 1 CusTree.Nodes(i).Nodes.Add(nstdNode)NextAs you can see I am trying to create it dynamically. I have two tree views: CusTree and WipTree. My problem is that when I add nstdNode (that contains the template node) to the CusTree nodes, it only shows the nstdNode appended to the last Node of CusTree. I am in a fix as what could be the problem. Can you please help me with this ASAP??
<telerik:RadTreeView ID="CusTree" runat="server" Skin="Outlook"></telerik:RadTreeView><telerik:RadTreeView ID="WipTree" runat="server" Skin="Outlook"> <NodeTemplate> <iframe id="frm" runat="server" src="http://google.com"></iframe> </NodeTemplate></telerik:RadTreeView>