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

Expand / collapse node clear the checkbox indeterminate state

1 Answer 285 Views
TreeList
This is a migrated thread and some comments may be shown as answers.
Kay
Top achievements
Rank 1
Kay asked on 23 Jun 2016, 01:21 AM

Hi,

We have checkbox (<input type='checkbox' ...>) in each row of TreeList where we will set it as indeterminate state by below code:

     checkboxElement.prop('indeterminate', true);

It works fine until I expand or collapse a node. All those 'indeterminate' checkbox are cleared.

Please kindly advise any way to prevent such clearing.

Thanks!

Kelvin

 

1 Answer, 1 is accepted

Sort by
0
Stefan
Telerik team
answered on 27 Jun 2016, 09:00 AM
Hello Kelvin,

I made an example of the Kendo UI TreeList with indeterminate (tri-state) checkboxes:

http://dojo.telerik.com/IbEMu

Also, the checkboxes in the TreeList should be implemented using the columns.template configuration:

http://docs.telerik.com/kendo-ui/api/javascript/ui/treelist#configuration-columns.template

If this is not helpful in your scenario, please send a runnable example that reproduces the issue, so we can investigate in further. 

Regards,
Stefan
Telerik
 
Get started with Kendo UI in days. Online training courses help you quickly implement components into your apps.
 
Tags
TreeList
Asked by
Kay
Top achievements
Rank 1
Answers by
Stefan
Telerik team
Share this question
or