You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm not sure if this is just missing or it can't be done, but it seems like an oversight.
I would like to use the checkboxes with the tri-state functionality (parent child relationship) but within a custom template. I tried to assign the node.toggleSelected() method to the (change) event on a checkbox in a node, but it doesn't work (the toggleSelected() method is also missing from the Tree Node API reference page but it definitely exists).
The examples on the custom templates page which contain checkboxes don't have this tri-state functionality working... any help would be much appreciated.
The text was updated successfully, but these errors were encountered:
Hi @stuartngreen,
I came across the same issue as you.
It can simply be solved by using the following template for checkbox in your node's custom template: <input class="tree-node-checkbox" type="checkbox" (click)="node.mouseAction('checkboxClick', $event)" [checked]="node.isSelected" [indeterminate]="node.isPartiallySelected" />
Thanks @madman-maverick
I ended up writing a whole new checkbox tree because performance wasn't so good with thousands of checkboxes. But your reply will help someone I'm sure!
I'm not sure if this is just missing or it can't be done, but it seems like an oversight.
I would like to use the checkboxes with the tri-state functionality (parent child relationship) but within a custom template. I tried to assign the node.toggleSelected() method to the (change) event on a checkbox in a node, but it doesn't work (the toggleSelected() method is also missing from the Tree Node API reference page but it definitely exists).
The examples on the custom templates page which contain checkboxes don't have this tri-state functionality working... any help would be much appreciated.
The text was updated successfully, but these errors were encountered: