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

Create Hierarchical by DataSet in code behind

1 Answer 17 Views
TreeListView
This is a migrated thread and some comments may be shown as answers.
Mickael
Top achievements
Rank 1
Mickael asked on 28 Apr 2014, 07:40 AM
Hello, 

I need help because I have used a RadTreeListView and I have to generate from code behind. 

I can not seem to generate my TreeListView, I use a dataset because I can not use a class object as the number of columns is dynamic and may vary depending on the user selection. 

Would you have an example to dynamically génrérer from the code behind a TreeViewList. 

It must also be able to create the hierarchy from the code behind. 

Thank you for your help, I'm looking for 5 days on the Internet and I have found nothing to help me. 

Thank you in advance for your help. 

Mickaël

1 Answer, 1 is accepted

Sort by
0
Nick
Telerik team
answered on 30 Apr 2014, 02:22 PM
Hi Mickael,

RadTreeListView is designed to work with class hierarchies, and there is no way to create a hierarchy with it, with a DataSet source. The idea is to have an "object.Children" construction that you can use for the TreeLists ChildTableDefinitions. 
You can however add columns runtime, depending on the data that is being loaded in the source collection.

Hope this makes sense. 

Regards,
Nik
Telerik
 
Check out Telerik Analytics, the service which allows developers to discover app usage patterns, analyze user data, log exceptions, solve problems and profile application performance at run time. Watch the videos and start improving your app based on facts, not hunches.
 
Tags
TreeListView
Asked by
Mickael
Top achievements
Rank 1
Answers by
Nick
Telerik team
Share this question
or