Changing Kendo combobox placeholder text in javascript has no effect

  • MVC 5.2.2
  • Razor 3.2.2
  • Kendo MVC UI v2014.2.903

In Javascript, when I want to change the ComboBoxFor placeholder text, I thought I could do:

@model MyNameSpace.Models.Address

@(Html.Kendo().ComboBoxFor(model => model.ZipCode)
    .Placeholder("Select Zip...")


using javascript ....

 $("#Address_ZipCode").data("kendoComboBox").options.placeholder = "Select Postal...";


But that doesn't seem to affect the dropdownlist placeholder text at all.

How to do it right?

Here is my Kendo UI JSFiddle:


source to share

1 answer

Amazing people at Telerik helped me:

$("#Address_ZipCode").data("kendoComboBox").input.attr("placeholder", "Select Postal...");




All Articles