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

Configure DropDownList to not preselect the first item.

3 Answers 683 Views
DropDownList
This is a migrated thread and some comments may be shown as answers.
Chris
Top achievements
Rank 1
Chris asked on 15 Nov 2013, 12:24 AM
How do I configure a DropDownList to show as empty when the page first loads? Whatever I try, it preselects the first item.

I'm trying to use this as a guide, but nothing is working:

http://demos.kendoui.com/web/dropdownlist/mvvm.html

3 Answers, 1 is accepted

Sort by
0
Georgi Krustev
Telerik team
answered on 15 Nov 2013, 10:05 AM
Hello Chris,

 
The DropDownList widget, like the Html Select element, has always a pre-selected option. You can use the option label to pre-select empty option or use the ComboBox widget.

Regards,
Georgi Krustev
Telerik
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0
Chris
Top achievements
Rank 1
answered on 15 Nov 2013, 02:13 PM
Ok, so the demo I linked to doesn't have a pre-selected option because it's bound to remote data, and it doesn't actually retrieve the data until you click on it?
0
Georgi Krustev
Telerik team
answered on 18 Nov 2013, 08:55 AM
Hello again Chris,

Yes, in this case the widget is completely empty and it doesn't know which item is selected one. In general, we suggest setting value and text options if autoBind option is set to false.

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
Chris
Top achievements
Rank 1
Answers by
Georgi Krustev
Telerik team
Chris
Top achievements
Rank 1
Share this question
or