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

Tutorial MVVM in Kendo UI Walkthrough wrong?

1 Answer 54 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Georg
Top achievements
Rank 1
Georg asked on 27 Sep 2012, 07:22 AM
Hi,

is this statement 

<select data-role="dropdownlist" data-bind="source: type, value: expenseType">
    <span data-text-field="name" data-value-field="value" >
</select>

in the example http://docs.kendoui.com/tutorials/mvvm-in-kendo-ui correct? Because it doesn't work. In JSFiddle example you use this

<select data-role="dropdownlist" data-bind="source: type, value: expenseType" data-text-field="name" data-value-field="value" ></select>

statement.

1 Answer, 1 is accepted

Sort by
0
Alexander Valchev
Telerik team
answered on 01 Oct 2012, 02:55 PM
Hello Georg,

Thank you for the feedback.
The correct syntax is the one used in jsFiddle example, data-text-field and data-value-field should be attached to the <select> element.
I corrected the code snippet and the change will be available live after the next site update. As a small sign of our appreciation for bringing this to our attention I updated your Telerik points.

Regards,
Alexander Valchev
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Tags
General Discussions
Asked by
Georg
Top achievements
Rank 1
Answers by
Alexander Valchev
Telerik team
Share this question
or