PDA

View Full Version : Trigger ComboBox search by script?



pantarhei
17 May 2010, 11:36 AM
Hello,

i have an ComboBox search like seen in the demos [1]. Everything is fine. But i can't find a way to trigger the search by script. If i try to reload the query is not submitted. How can i set my value and then trigger the search like it happens if i enter some text?



Ext.getCmp('search_cb').setValue('Testvalue');
Ext.getCmp('search_cb').getStore().reload();


[1] http://www.extjs.com/deploy/dev/examples/form/forum-search.html

regards