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

Enable Tri-State Checkbox without checkChildren

1 Answer 438 Views
DropDownTree
This is a migrated thread and some comments may be shown as answers.
Mike
Top achievements
Rank 1
Mike asked on 27 Sep 2019, 09:40 PM

Hello,

I noticed in the documentation if you set checkChildren it enables tri-state check box. The problem is that we do not want to enable checkChildren.  In addition we have the possibility of showing a large tree. Possibly 100+ items, 3+ levels deep. When coming back into our edit screen to modify what was previously selected.  While collapsed we would like to be able to see a parent in it's indeterminate state if there are any children underneath it that are checked.  For example, imagine a tree like so.

Item 1

|_ Item 11

|_ Item 12

|_ Item 13

In our application we allow the user to choose 1, 11, and 13.  With checkChildren set to true.  If the user checks Item 1.  They would then have to go uncheck item 12 to get the same result.  As you can imagine.  As I mentioned before with 100+ items with 3+ levels deep and checkChildren set to true.  This could be a headache.  Here is my question.  Is it possible to have the tri-state work this way without checkChildren to indicate a child some where under the parent is checked?

1 Answer, 1 is accepted

Sort by
0
Veselin Tsvetanov
Telerik team
answered on 01 Oct 2019, 10:45 AM

Hi Mike,

I am afraid that currently, the tri-state checkboxes in the DropDownTree are only available for those widgets that have their checkChildren option set to true. The widget does not offer the means that would allow you to enable the tri-state and disable the checkChildren at the same time.

Regards,
Veselin Tsvetanov
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
DropDownTree
Asked by
Mike
Top achievements
Rank 1
Answers by
Veselin Tsvetanov
Telerik team
Share this question
or