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

How to use template in Treeview Control?

2 Answers 79 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
Savan
Top achievements
Rank 1
Savan asked on 02 Sep 2008, 06:46 AM
Hi,

I want to create a TreeView which looks like as

|
|__(DepartmentName)  ------> Parent Node
|    |___(UserName)     --------> Child Node
|            |___(UserDesription) -----> Child Child Node
|

I have a table with following columns.

 | DepartmentName | UserId  | UserName | UserDesription |

I want to implement this by using  template ....Can I do this? If yes , please guide me?

Please node that, I am creating this in sharepoint, so I have to implement this through code only, no aspx page.

Thanks
Savan
 

2 Answers, 1 is accepted

Sort by
0
Yana
Telerik team
answered on 03 Sep 2008, 07:14 AM
Hi Savan,

Please check this help topic about binding RadTreeView to hierarchical data. Here you can read how to add templates at run-time.

Hope this helps.

 Regards,
Yana
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Savan
Top achievements
Rank 1
answered on 09 Sep 2008, 11:59 AM
It will really help me.

Thanks
Tags
TreeView
Asked by
Savan
Top achievements
Rank 1
Answers by
Yana
Telerik team
Savan
Top achievements
Rank 1
Share this question
or