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

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

4 Answers 207 Views
DropDownList
This is a migrated thread and some comments may be shown as answers.
Volodymyr Oliinyk
Top achievements
Rank 1
Volodymyr Oliinyk asked on 28 Jan 2013, 09:36 PM
Hello,

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">
</select>
If I remove "data-option-label" all start working fine (list doesn't load its data during the declaration).

Is it a bug?

Vladimir

4 Answers, 1 is accepted

Sort by
0
Alexander Valchev
Telerik team
answered on 30 Jan 2013, 04:25 PM
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!
0
Dennis
Top achievements
Rank 2
answered on 07 Aug 2013, 01:13 PM
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.
0
Christopher
Top achievements
Rank 1
answered on 30 Jun 2016, 05:20 AM

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

Please advise.

Last version works on production.

 

Thanks,

 

0
Georgi Krustev
Telerik team
answered on 04 Jul 2016, 07:21 AM
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.

Regards,
Georgi Krustev
Telerik
 
Get started with Kendo UI in days. Online training courses help you quickly implement components into your apps.
 
Tags
DropDownList
Asked by
Volodymyr Oliinyk
Top achievements
Rank 1
Answers by
Alexander Valchev
Telerik team
Dennis
Top achievements
Rank 2
Christopher
Top achievements
Rank 1
Georgi Krustev
Telerik team
Share this question
or