Create Hierarchical by DataSet in code behind

2 posts, 0 answers
  1. Mickael
    Mickael avatar
    1 posts
    Member since:
    Nov 2012

    Posted 28 Apr 2014 Link to this post


    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. 

  2. Nick
    Nick avatar
    593 posts

    Posted 30 Apr 2014 Link to this post

    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. 

    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.
Back to Top