Automatically Create Hierarchy from Item Data

2 posts, 0 answers
  1. Mike
    Mike avatar
    59 posts
    Member since:
    Jan 2008

    Posted 01 Mar 2012 Link to this post


    I'm trying to bind a treeview to a list(of CustomClass) where the custom class has "StartTime" and "Group" properties.

    Is there some way I could group (into a node hierarchy) by the date parts of the start time? So, at the top level would be "StartTime.Date", that would expand to show all values of "StartTime.Time" for that Date, then those would expand to show all values of "Group" for that start date and time - that kind of thing?


  2. Bozhidar
    Bozhidar avatar
    1095 posts

    Posted 06 Mar 2012 Link to this post

    Hello Mike,

    You can go through all the items in the list and create the TreeView programmatically. I've attached a small sample page demonstrating the approach.
    the Telerik team
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
  3. DevCraft R3 2016 release webinar banner
Back to Top