PDA

View Full Version : Filtering store using combobox or Textfield and show it in the grid



paweluz
16 Jun 2010, 12:34 AM
Hi

I am new in extJS. I know how to use the common functionality but for now I have to do something else... I would like to write this functionality:
- user write the name of car that he would like to find in the store e.g he would like to find 'Volvo' and he starts typing vol...
- using combobox or textfield (I am not sure what to chose for that - I do know that you can assign the store to the textfield) data are filtered and presented in the grid.

For now I have that working but both data are shown in the combobox dropdown and in the grid. It looks like that:

http://h.imagehost.org/0112/search.jpg

I would just like to have my data in the grid, without the dropdown menu of combobox. That is why I was thinking of using the textField. Something like on the API Documentation page of extJS (http://www.sencha.com/deploy/dev/docs/)on (http://www.sencha.com/deploy/dev/docs/%29on) the left side, where you have 'Find a class' text field, but using grid instead of tree.

I hope that someone can give me a clue...

Regards,
Poul