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

treeview with template / mvvm

4 Answers 154 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
Chris
Top achievements
Rank 1
Chris asked on 05 Nov 2014, 09:23 AM
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


4 Answers, 1 is accepted

Sort by
0
Alex Gyoshev
Telerik team
answered on 07 Nov 2014, 11:35 AM
Hello Chris,

Your approach is correct, but there is a bug that does not bind node children to the correct data item. It has been resolved for the next internal build, which should be out by the start of next week (or later today, depending on your timezone).

Regards,
Alex Gyoshev
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
0
Chris
Top achievements
Rank 1
answered on 07 Nov 2014, 05:52 PM
thanks...

don't suppose you know when this might progress into an official release (eg SP) ?

Chris
0
Chris
Top achievements
Rank 1
answered on 09 Nov 2014, 11:08 AM
...and assuming that the official release isn't due withing the next few days, is there a workaround that you could suggest in the meantime?  (as from the sounds of it, we shouldn't in reality use the 'internal build' for deployment)

Thanks - any suggestions appreciated 

Chris
0
Alex Gyoshev
Telerik team
answered on 10 Nov 2014, 11:16 AM
Hello Chris,

The Q3 release is due by the end of next week. As for the internal builds, they include only incremental bug fixes and have passed all automatic tests (unit and functional), and contain no breaking changes. Thus, they are considered quite stable for production use. In contrast, the official release might be better tested, but may include documented breaking changes.

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
Chris
Top achievements
Rank 1
Answers by
Alex Gyoshev
Telerik team
Chris
Top achievements
Rank 1
Share this question
or