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

Bound drop down throws exception on change

1 Answer 71 Views
MVVM
This is a migrated thread and some comments may be shown as answers.
Peter Staev
Top achievements
Rank 1
Peter Staev asked on 06 Mar 2012, 04:14 PM
I'm trying to run the following sample from the help:
<select data-bind="value: selectedColor">
    <option value="red">Red</option>
    <option value="green">Green</option>
    <option value="blue">Blue</option>
</select>
<script>
    var viewModel = {
        selectedColor: "green"
    };
 
    kendo.bind($("select"), viewModel);
</script>

When i change the drop down value i receive a JS error:
Line: 6893
Error: Unable to get value of the property 'get': object is null or undefined

1 Answer, 1 is accepted

Sort by
0
Atanas Korchev
Telerik team
answered on 08 Mar 2012, 04:25 PM
Hello,

 Thank you for reporting this bug. Right now the value binding works only if the source binding is specified as well. Of course this should not be the case. We will fix that in the official release.

All the best,
Atanas Korchev
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Tags
MVVM
Asked by
Peter Staev
Top achievements
Rank 1
Answers by
Atanas Korchev
Telerik team
Share this question
or