Tri-State checkbox in TreeList

1 Answer 130 Views
TreeList
gul
Top achievements
Rank 1
gul asked on 25 Sep 2023, 12:26 PM

Hi,

how to implement tri-state checkboxes in tree list. which should be fully checked, or fully unchecked or partially checked.

Thanks.

1 Answer, 1 is accepted

Sort by
0
Konstantin Dikov
Telerik team
answered on 25 Sep 2023, 12:43 PM

Hi Gul,

Currently there is no built-in functionality for a indeterminate state selection for the TreeList. It could be achieved with custom selection and custom tracking of the items' selected state, but at the moment we do not have an example which has complete implementation that we can share. Nevertheless, we have the following example, which could be used as a starting point, where a custom cell with indeterminate state checkbox is used:

However, please have in mind that it just demonstrate a possible approach that can be using custom checkbox.

Another example that might be useful is the following, where the child/parent nodes are selected dynamically (if a parent node is selected, all child nodes will be selected, etc.):

Hope this helps.

 

Regards,
Konstantin Dikov
Progress Telerik

Stay tuned by visiting our public roadmap and feedback portal pages! Or perhaps, if you are new to our Kendo family, check out our getting started resources!

Tags
TreeList
Asked by
gul
Top achievements
Rank 1
Answers by
Konstantin Dikov
Telerik team
Share this question
or