This question is locked. New answers and comments are not allowed.
Combo box errors out (i.e. Firebug shows error message: g.toLowerCase is not a function) when one of the display text is an empty text and if you chose .Filterable
To replicate, use the example below and try to type any text in the box - like e - and the combo box will not select the second item, but the browser status will show that it has an error.
I would like to see filtering work despite of having one of the "Text" being empty. Temporary workaround I am using is to populate the empty text value with some dummy text, so the combo box does not error out.
I am using version: 2011.1.315
---
Controller
View
To replicate, use the example below and try to type any text in the box - like e - and the combo box will not select the second item, but the browser status will show that it has an error.
I would like to see filtering work despite of having one of the "Text" being empty. Temporary workaround I am using is to populate the empty text value with some dummy text, so the combo box does not error out.
I am using version: 2011.1.315
---
Controller
public ActionResult Test(){ var list = new List<SelectListItem> { new SelectListItem { Selected = true, Value = "v1", Text = "" }, new SelectListItem { Selected = false, Value = "v2", Text = "Second Choice" } }; var sel = new SelectList(list, "Value", "Text"); return View(sel);}View
@model SelectList@(Html.Telerik().ComboBox() .Name("ComboBox") .SelectedIndex(0) .BindTo(Model) .Filterable(filtering => filtering.FilterMode(AutoCompleteFilterMode.Contains)))