TreeView Within a Listbox?

2 posts, 0 answers
  1. Joel
    Joel avatar
    5 posts
    Member since:
    Jan 2019

    Posted 04 Feb 2019 Link to this post

         Is it possible to have a checkbox treeview within a listbox and have it so that when a parent item is checked, the parent and all of its children can be moved to a selected side of the listbox?
  2. Ivan Danchev
    Ivan Danchev avatar
    1998 posts

    Posted 06 Feb 2019 Link to this post

    Hello Joel,

    There are some challenges involved in the scenario you describe, which you should consider if you decide to implement it, since it is not available out-of-the-box:
    • Having a TreeView nested within a ListBox is possible and can be done by initializing the TreeView in a ListBox template
    • Separate nodes, or a parent and its child nodes or event the whole TreeView is not automatically transferred by the ListBox
    •  More so transferring an item from one ListBox to another using the built-in transfer functionality would move only the ListBox item without the TreeView in it. In other words an empty item with no TreeView in it will appear. The same is valid for dragging/dropping an item that has a TreeView in it. This means that custom logic that creates a new TreeView instance on every item transfer should be implemented.

    Ivan Danchev
    Progress Telerik
    Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
Back to Top