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

MVVM Source/Template binding Issue

3 Answers 41 Views
MVVM
This is a migrated thread and some comments may be shown as answers.
James
Top achievements
Rank 1
James asked on 24 Jun 2013, 01:50 AM
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


3 Answers, 1 is accepted

Sort by
0
Accepted
Daniel
Telerik team
answered on 26 Jun 2013, 05:37 AM
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!
0
James
Top achievements
Rank 1
answered on 26 Jun 2013, 06:10 AM
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.
0
Daniel
Telerik team
answered on 28 Jun 2013, 11:43 AM
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!
Tags
MVVM
Asked by
James
Top achievements
Rank 1
Answers by
Daniel
Telerik team
James
Top achievements
Rank 1
Share this question
or