angularjs - Kendo Dropdownlist Placeholder -
i using kendo dropdownlist , need placeholder dropdownlist shouldn't appear in list when select dropdown. tried using optionlabel value shows in list.
var $dropdownelement; $dropdownelement = $("<input />"); $dropdownelement.appendto($dropdowncontainer); $dropdownelement.kendodropdownlist({ datatextfield: "text", datavaluefield: "value", datasource: dropdown.items, optionlabel: "select option", //shows option in dropdown popup: { appendto: $dropdowncontainer } });
i need solution can add placeholder , value shouldn't shown option in dropdownlist.
you can find first element in dropwdownn list , hide make less chatty
$dropdownelement.getkendodropdownlist().list.find("li.k-item").first().hide();
Comments
Post a Comment