treeview with template / mvvm

5 posts, 0 answers
  1. Chris
    Chris avatar
    21 posts
    Member since:
    Jul 2004

    Posted 05 Nov 2014 Link to this post

    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


  2. Alex Gyoshev
    Admin
    Alex Gyoshev avatar
    2500 posts

    Posted 07 Nov 2014 Link to this post

    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!
     
  3. Kendo UI is VS 2017 Ready
  4. Chris
    Chris avatar
    21 posts
    Member since:
    Jul 2004

    Posted 07 Nov 2014 in reply to Alex Gyoshev Link to this post

    thanks...

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

    Chris
  5. Chris
    Chris avatar
    21 posts
    Member since:
    Jul 2004

    Posted 09 Nov 2014 in reply to Chris Link to this post

    ...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
  6. Alex Gyoshev
    Admin
    Alex Gyoshev avatar
    2500 posts

    Posted 10 Nov 2014 Link to this post

    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!
     
Back to Top
Kendo UI is VS 2017 Ready