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

Treeview checkbox ng-model not updating

1 Answer 144 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
jim
Top achievements
Rank 1
jim asked on 16 Mar 2015, 03:49 PM
I'm using treeview with angularjs. When I check a parent node, none of the child checkbox ng-models are updating. I supplied ng-models via the checkboxTemplate property in the config. Do I need to do something special to get these to update if their parent checkbox is checked?

1 Answer, 1 is accepted

Sort by
0
Alex Gyoshev
Telerik team
answered on 18 Mar 2015, 10:27 AM

Hello Jim,

At this time, model bindings are not supported on the checkbox templates. You can workaround this limitation by serializing / deserializing the checkbox state in the check event and prior to binding the TreeView, as shown in this Dojo snippet.

Regards,
Alex Gyoshev
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
Tags
TreeView
Asked by
jim
Top achievements
Rank 1
Answers by
Alex Gyoshev
Telerik team
Share this question
or