I've taken my data (a list of clients and sub clients)... and converted it to a List<ClientData> where ClientData has three properties: ClientID (int), ParentID (int?), ClientName (string).
Top level clients have ParentID as null. Sub-clients have ParentID set to the ClientID of their parent.
I bind this list to the RadTreeView and get a linear list of all the clients (in proper order), but no "tree view" or "noding" at all. :( Please advise what the heck I'm doing wrong!!!
Top level clients have ParentID as null. Sub-clients have ParentID set to the ClientID of their parent.
I bind this list to the RadTreeView and get a linear list of all the clients (in proper order), but no "tree view" or "noding" at all. :( Please advise what the heck I'm doing wrong!!!
<telerik:radtreeview id="clientTree" runat="server" skin="Vista" width="100%" showlineimages="true" height="300px" maxdatabinddepth="2"> |
<databindings> |
<telerik:radtreenodebinding textfield="ClientName" valuefield="ClientID" /> |
</databindings> |
</telerik:radtreeview> |
ClientTree.DataFieldID = "ClientID"; |
ClientTree.DataFieldParentID = "ParentID"; |
ClientTree.DataValueField = "ClientID"; |
ClientTree.DataTextField = "ClientName"; |
ClientTree.DataSource = parsed (the List<ClientData>) |
ClientTree.DataBind(); |
Pleas