lundi 21 août 2017

Kendo UI Treeview - update checkbox state when bound to local data

I have a JavaScript object with items array to define hierarchy. When I create a kendoTreeView widget with this data, loadOnDemand set as false, the checkboxes that should have been indeterminate, show up as unchecked.

What I did to fix this was to set loadOnDemand as true, expand all nodes and collapse them.

The expanding and collapsing is necessary as I am working on the leaf nodes of the tree on user interaction.

Is there a way to achieve this with loadOnDemand set as false?




Aucun commentaire:

Enregistrer un commentaire