Hello,
I need to use custom directives for manage checkedChange behavior.
Firstly I tried:
<kendo-treeview [nodes]="model.Nodes"
textField="TextField"
kendoTreeViewExpandable
[expandBy]="model.ExpandBy"
[(expandedKeys)]="model.ExpandedKeys"
[hasChildren]="model.HasChildren"
[children]="model.Children"
[kendoTreeViewCheckable]="model.CheckableSettings"
[(checkedKeys)]="model.CheckedKeys"
[checkBy]="model.CheckBy"
[isChecked]="model.IsChecked"
(checkedChange)="checkMultiple($event)"
</kendo-treeview>
but fires my event, and then the default event also. So checkMultiple was executed 2 times, so I could't check items. I thought that this way ignore the default event.
For this reason I decided to use my own custom directives, to overwrite all:
<kendo-treeview [nodes]="treeView.Nodes"
textField="TextField"
kendoTreeViewExpandable
[expandBy]="treeView.ExpandBy"
[(expandedKeys)]="treeView.ExpandedKeys"
[hasChildren]="treeView.HasChildren"
[children]="treeView.Children"
customCheck
[(checkedKeys)]="treeView.CheckedKeys">
</kendo-treeview>