object Object bug when null value

2 posts, 0 answers
  1. Ryan
    Ryan avatar
    38 posts
    Member since:
    Mar 2014

    Posted 10 Sep 2015 Link to this post

    The first time a value is chosen from my dropdownlist it will display "object Object". After selecting an item a second time, it correctly displays. I've tracked the offending line down to binder.js:

     isObservableObject = this._valueIsObservableObject

    The first time through it is incorrectly (?) marked as an observable object so a complex object is set as the value. 

    Demo: http://dojo.telerik.com/oreve

    Changing POA for an item that is not null works. Changing POA for the empty line shows object Object.

  2. Georgi Krustev
    Georgi Krustev avatar
    3688 posts

    Posted 12 Sep 2015 Link to this post

    Hello Ryan,

    you will need to set the valuePrimitive option to true. Check the updated demo:
    Georgi Krustev
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Back to Top