We need to show 2 check-boxes per tree node, and trying to do this with a custom template and mvvm databind - but I cant get it to to work
I took the sample here (in this case just trying to get one checkbox to work in my template to prove theory)
http://demos.telerik.com/kendo-ui/treeview/mvvm
and amended so that the html decl had instead a template defined using data-template="treeview-template", and added a 'chk' field to the test data
The template looks like (and i added item.chk display to the end for my sanity)
<script id="treeview-template" type="text/kendo-ui-template">
#= item.name # <input type='checkbox' data-bind='checked: chk'></input> #: item.chk #
</script>
Note in above i also tried databind='checked: item.chk'
i am sure its something obvious... any helpers appreciated
See this dojo for the example
http://dojo.telerik.com/@cobcob/IRUx/2
Thanks
Chris
I took the sample here (in this case just trying to get one checkbox to work in my template to prove theory)
http://demos.telerik.com/kendo-ui/treeview/mvvm
and amended so that the html decl had instead a template defined using data-template="treeview-template", and added a 'chk' field to the test data
The template looks like (and i added item.chk display to the end for my sanity)
<script id="treeview-template" type="text/kendo-ui-template">
#= item.name # <input type='checkbox' data-bind='checked: chk'></input> #: item.chk #
</script>
Note in above i also tried databind='checked: item.chk'
i am sure its something obvious... any helpers appreciated
See this dojo for the example
http://dojo.telerik.com/@cobcob/IRUx/2
Thanks
Chris