开发者

How to make Ext.form.Combobox cannot input "dirty" data

开发者 https://www.devze.com 2023-02-18 13:21 出处:网络
Do we have any way to make an Ext.form.Combobox cannot input the data which is not in combobox\'s store?

Do we have any way to make an Ext.form.Combobox cannot input the data which is not in combobox's store? It means that user can type to field for filter items quickly, but they cannot input the "dirty" data outside of the combobo开发者_StackOverflow中文版x's store? Does ExtJS support this feature by configuring properties or we have to customize it?! Thank you very much!


Configuring your combobox with the editable:false and forceSelection:true should suffice


combo has 2 variables (like <select>) value and display. Even you set editable:true what is default and allow you to write in combo, whatever you write it should mach display in order to set value...

In you case wiget of TextField with autosuggest (not need to AJAX) would work

0

精彩评论

暂无评论...
验证码 换一张
取 消