More functionality on Listview

2 posts, 0 answers
  1. Ron
    Ron avatar
    1 posts
    Member since:
    Apr 2012

    Posted 07 Apr 2012 Link to this post


    I have project in which I have hierarchical data to show. It's basically device controlling project in which multiple first layer parent device which has multiple child device/second layer parent (which again has multiple child / next layer parent so on). I want to display this hierarchical data on my home page which can collapse/expand every parent. Along with the display I want to add more item to every parent (like checkbox in parent header to select/deselect all child of that parent).

    The Listview is showing this kind of data but up to one layer only and it not allow me to add other control to header. Can anyone suggest how can I accomplish this?

    I want to display data like below:

    Parent Header (with some more control like checkbox)
        child1     child2    child3   child4    child5 - horizontally align (all child has checkbox to select/deselect and Small icon image)
        Second layer parent (with some more control like checkbox)
             child1   child2    child3   child4 - same as above
    Parent Header
        Multiple Childs
        Second Layer Parent
             Multiple Childs

  2. Ivan Todorov
    Ivan Todorov avatar
    688 posts

    Posted 11 Apr 2012 Link to this post

    Hi Ron,

    Thank you for writing.

    To achieve your requirements, you can try using RadTreeView with custom nodes. I have attached a small sample project, which demonstrates how you can implement this. Additionally, there is a demo called Custom Nodes in our Examples application, which might also help you in achieving your scenario.

    I hope you find this useful. Should you need further help, I will be glad to assist you.

    Ivan Todorov
    the Telerik team
    RadControls for WinForms Q1'12 release is now live! Check out what's new or download a free trial >>
Back to Top