Tutorial MVVM in Kendo UI Walkthrough wrong?

2 posts, 0 answers
  1. Georg
    Georg avatar
    7 posts
    Member since:
    Sep 2012

    Posted 27 Sep 2012 Link to this post


    is this statement 

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

    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>

  2. Alexander Valchev
    Alexander Valchev avatar
    2895 posts

    Posted 01 Oct 2012 Link to this post

    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.

    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!
Back to Top