Bound drop down throws exception on change

2 posts, 0 answers
  1. Peter Staev
    Peter Staev avatar
    20 posts
    Member since:
    Dec 2009

    Posted 06 Mar 2012 Link to this post

    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>
        var viewModel = {
            selectedColor: "green"
        kendo.bind($("select"), viewModel);

    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
  2. Atanas Korchev
    Atanas Korchev avatar
    8462 posts

    Posted 08 Mar 2012 Link to this post


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