After the update to new version data-auto-bind + data-option-label stops working

5 posts, 0 answers
  1. Volodymyr Oliinyk
    Volodymyr Oliinyk avatar
    35 posts
    Member since:
    Nov 2006

    Posted 28 Jan 2013 Link to this post


    After the update to the new version all dropdownlists with data-auto-bind="false" starts loading their data during the declaration if they have a "data-option-label". For example the declaration:
    <select id="edopp_ddlList" data-bind="value: val" data-role="dropdownlist" data-text-field="Name" data-value-field="ID" data-auto-bind="false" data-source="valsDataSource" data-option-label="(No val)" class="dropdownSmall">
    If I remove "data-option-label" all start working fine (list doesn't load its data during the declaration).

    Is it a bug?

  2. Alexander Valchev
    Alexander Valchev avatar
    2887 posts

    Posted 30 Jan 2013 Link to this post

    Hello Volodymyr,

    The widget is bound to a value. If the DropDownList has a value, it will read its DataSource ignoring the auto-bind setting. This happens because the widget attempts to resolve its value - to match the value with a item from the DataSource.

    Please check the following examples: 

    I hope this helps. Please let me know in case I missed something.

    Kind 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!
  3. Dennis
    Dennis avatar
    24 posts
    Member since:
    Oct 2012

    Posted 07 Aug 2013 Link to this post

    It would be nice if this would somehow be optional.

     This is causing trouble for me. I have a template that gets rendered, and it has a bunch of dropdownlists bound to a datasource. The data source gets read only once, the data never changes or needs to be paged or anything. but the template gets reintialized if you press a button in the interface. On each reintiliaze the dataSource gets remote read once again. This uses unnecesary bandwith and makes my interface flicker a bit.

    Right now I hack it by loading the data of the datasource into a separate array and binding the dropdowns to that.
  4. Christopher
    Christopher avatar
    1 posts
    Member since:
    Nov 2015

    Posted 30 Jun 2016 Link to this post

    I am having same problem after upgrade. All combobox and datepicker stopped working.

    Please advise.

    Last version works on production.




  5. Georgi Krustev
    Georgi Krustev avatar
    3725 posts

    Posted 04 Jul 2016 Link to this post

    Hello Christopher,

    The thread is a bit old and we will more details what exactly does not work on your end. We've added many enhancements since 2013, which makes tracking the cause of the described issue harder.

    Would it be possible to share more details what does not work in your project? A repro demo that demonstrates the case would be of a great assistance.

    Georgi Krustev
    Get started with Kendo UI in days. Online training courses help you quickly implement components into your apps.
Back to Top