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

2 posts, 0 answers
  1. Kevin
    Kevin avatar
    28 posts
    Member since:
    Feb 2009

    Posted 26 Jan 2010 Link to this post

    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

     

  2. Yana
    Admin
    Yana avatar
    5013 posts

    Posted 28 Jan 2010 Link to this post

    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.
Back to Top