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

Build RadTreeView

1 Answer 55 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
kiran
Top achievements
Rank 1
kiran asked on 09 Aug 2008, 07:19 AM
Hi Friends,
    Can anyone help to build RadTreeView for the values in the DataTable
    ex:- i have my table values like this
    
menuid       parentid     value     
------------ ------------ ----------
1            0            Parent
2            1            Child1
3            1            Child2
4            1            Child3
5            2            Child1-1
6            2            child1-2
7            2            child1-3
8            3            child2-1
9            3            child2-2
10           5            Child1-1-1

Thanks
Kiran

1 Answer, 1 is accepted

Sort by
0
Yana
Telerik team
answered on 11 Aug 2008, 01:06 PM
Hi Kiran,

Thank you for contacting us.

You should set 'null' instead of '0' as parentid value for the root items of RadTreeView. You can find more information about hierarchical data binding to DataTable here.

All the best,
Yana
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
TreeView
Asked by
kiran
Top achievements
Rank 1
Answers by
Yana
Telerik team
Share this question
or