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

DropDownList loses optionLabel when data source is updated to empty array

1 Answer 139 Views
DropDownList
This is a migrated thread and some comments may be shown as answers.
Holger
Top achievements
Rank 1
Holger asked on 02 Jan 2015, 01:56 PM
Hi,

I'm experiencing a problem where the DropDownList is losing it's optionLabel when it's data source is updated to an empty array. What I'm missing?

Demo is available here: http://dojo.telerik.com/@Holger/umEmI

Thanks,
Holger

1 Answer, 1 is accepted

Sort by
0
Georgi Krustev
Telerik team
answered on 05 Jan 2015, 03:43 PM
Hello Holger,

Kendo UI DropDownList is designed to show the option label only if the data source has items. That being said, you will need to set the option label text manually if you would like to clear the widget data source. Check the updated Dojo demo.

Regards,
Georgi Krustev
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
Tags
DropDownList
Asked by
Holger
Top achievements
Rank 1
Answers by
Georgi Krustev
Telerik team
Share this question
or