extjs - How to "reset" Lovecombo combobox? -


i have form lovocombo of cities on it. @ start current value of lovecombo emptytext value = "select city". select options , submit form, , current values changed 'london' (for example). else there "reset" button on form, have handler:

handler: function (){  lovecombo.setvalue(false); lovecombo.clearvalue();  } 

but lovecombo don`t takes on emptytext value = "select city", when "reset" button clicked.

how reset or set emptytext value lovecombo?

ps: sorry english.

lovecombo homepage http://lovcombo.extjs.eu/

since lovcombo extends ext.form.combobox, inherits reset() method. try:

handler: function() {   lovecombo.reset(); } 

Comments

Popular posts from this blog

python - Scipy curvefit RuntimeError:Optimal parameters not found: Number of calls to function has reached maxfev = 1000 -

c# - How to add a new treeview at the selected node? -

java - netbeans "Please wait - classpath scanning in progress..." -