View Full Version : Filtering a combo of a grid

3 Sep 2010, 1:50 AM

I'm looking for a solution with my grid and i'm getting mad...

i've got a grid which i'm writting data in the cells. One of them is a combobox. if i choose a value of the combo in a row, i wanna filter it in the next row.

For example. If i choose the value 'ABCDE' in a row, i don't wanna see it anymore when i write something like 'AB' in other rows.

I'm looking for a solution in docs and forum, but i don't find the way to do it.

If anyone can help me i'll be very glad.



3 Sep 2010, 1:55 AM
Normally, you would filter the combobox store, so it hides the 'ABCDE' value, but since you are also using triggerAction:'query' the combobox is already using filtering itself.

The only solution is to create another store and fill it with all combobox records and in the beforeedit event of the grid fill the combobox store with the valid records from the other store.

3 Sep 2010, 2:40 AM
Thanks Condor!!

Uhm, and what about using find() function on load and after that calling a filterBy() or something like that?

I'm a little bit lost with your solution.

3 Sep 2010, 2:48 AM
You can only use filterBy on the combobox store if the combobox isn't using filtering itself (triggerAction:'all',lastQuery:'').