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

TreeView not Noding... just inline list...

1 Answer 34 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
Kevin
Top achievements
Rank 1
Kevin asked on 26 Jan 2010, 10:33 PM
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!!!

 

 

 

<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

 

1 Answer, 1 is accepted

Sort by
0
Yana
Telerik team
answered on 28 Jan 2010, 07:20 AM
Hello Kevin,

This code is not enough to replicate the issue and try to fix it. Please send us a simple page demonstrating the problem. You should open a support ticket and attach it there.

Regards,
Yana
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Tags
TreeView
Asked by
Kevin
Top achievements
Rank 1
Answers by
Yana
Telerik team
Share this question
or