MVVM Source/Template binding Issue

4 posts, 1 answers
  1. James
    James avatar
    7 posts
    Member since:
    Jun 2012

    Posted 23 Jun 2013 Link to this post

    Hi,

    I am having an issue when I am using MVVM Source/Template binding

    I have created a fiddle here to show my issue: http://jsfiddle.net/eedER/3/

    When I use standard Kendo template directives (currentLicenseTemplate) it works, but when I use the data-bind attribute (currentLicenseTemplate1) it does not work correctly.

    I have tried it on 2013.1.514  and 2012.3.1315 as well as the latest internal build (2013.1.612)

    I hope that I am just missing something simple.

    Any help is appreciated.

    Thanks

    James


  2. Answer
    Daniel
    Admin
    Daniel avatar
    2231 posts

    Posted 26 Jun 2013 Link to this post

    Hello James,

    You should use a single root element in the template to which the item to be bound. I updated the jsFiddle with the needed changes.

    Regards,
    Daniel
    Telerik
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
  3. James
    James avatar
    7 posts
    Member since:
    Jun 2012

    Posted 26 Jun 2013 Link to this post

    Hi Daniel,

    Ahh so simple. Thanks for the response and the updated fiddle.

    I could not see that requirement documented anywhere in: http://docs.kendoui.com/getting-started/framework/mvvm/bindings/source

    Would be great to have that updated so others don't bump into this.

    Thanks again

    James.
  4. Daniel
    Admin
    Daniel avatar
    2231 posts

    Posted 28 Jun 2013 Link to this post

    Hello James,

    Thanks for the feedback. I included a note in the documentation.

    Regards,
    Daniel
    Telerik
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Back to Top