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

Setting up RadTreeView

2 Answers 60 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
jerry
Top achievements
Rank 1
jerry asked on 30 Mar 2012, 08:57 PM
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 Answers, 1 is accepted

Sort by
0
Accepted
Neil
Top achievements
Rank 1
answered on 02 Apr 2012, 05:29 PM
Have you tried removing the DataValueField?  Everything else looks ok.  Check out the example here.
0
jerry
Top achievements
Rank 1
answered on 02 Apr 2012, 07:43 PM
Neil,

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

Thanks again
Tags
TreeView
Asked by
jerry
Top achievements
Rank 1
Answers by
Neil
Top achievements
Rank 1
jerry
Top achievements
Rank 1
Share this question
or