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(); 

plunker dropdownlist (and combobox) example


Comments

Popular posts from this blog

php - Invalid Cofiguration - yii\base\InvalidConfigException - Yii2 -

How to show in django cms breadcrumbs full path? -

ruby on rails - npm error: tunneling socket could not be established, cause=connect ETIMEDOUT -