Setting up RadTreeView

3 posts, 1 answers
  1. jerry
    jerry avatar
    103 posts
    Member since:
    Feb 2008

    Posted 30 Mar 2012 Link to this post

    I'm starting to use the treeview control for the first time.  I have the following data coming out of a table

    Parent ID Text
    null      1   USA
    null      2   CANADA
    null      3   Mexico
    1          4   FLORIDA
    2          5   ONTERIO
    3          6   MEXICO CITY
    4          7   ORLANDO

    This is my control definition

        <telerik:RadTreeView ID="RadTreeView1" runat="server" DataFieldID="ID"
          DataFieldParentID="PARENT" DataSourceID="SqlDataSource1" DataTextField="Text"
          DataValueField="ID"  >

    My issue that i'm having is that the web page only shows the parent levels and there is no way to see the children levels. 
    What other setting do I need to set to have the tree show USA then I click on a plus sign then see FLORIDA and then click again and see ORLANDO?

    Thank you

  2. Answer
    Neil
    Neil avatar
    7 posts
    Member since:
    Jan 2012

    Posted 02 Apr 2012 Link to this post

    Have you tried removing the DataValueField?  Everything else looks ok.  Check out the example here.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. jerry
    jerry avatar
    103 posts
    Member since:
    Feb 2008

    Posted 02 Apr 2012 Link to this post

    Neil,

    Thanks for your help.  That did it.  It was an issue with how that was setup.

    Thanks again
Back to Top