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

TreeView Within a Listbox?

1 Answer 187 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
Joel
Top achievements
Rank 1
Joel asked on 04 Feb 2019, 10:51 PM
     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?

1 Answer, 1 is accepted

Sort by
0
Ivan Danchev
Telerik team
answered on 06 Feb 2019, 05:36 PM
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.

Regards,
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.
Tags
TreeView
Asked by
Joel
Top achievements
Rank 1
Answers by
Ivan Danchev
Telerik team
Share this question
or