PDA

View Full Version : show combo box results in a grid



kartikayg
29 Oct 2009, 1:23 PM
hi,

is there any way to show the results of a combo box search in a grid?

Jaitsu
29 Oct 2009, 2:27 PM
just use the same store for the grid as the combobox

kartikayg
29 Oct 2009, 2:29 PM
i want to show an ext grid with the result. either that i need to build an Ext.Template with a table structure.

what I need is for the user to see a grid with results..

thanks for replying.

Jaitsu
29 Oct 2009, 2:31 PM
i've never done it before, but a grid's data comes from a store, as with a combobox... so why not just specify a store and attach it to the combo and the grid... then when you filter the store down with the combobox the grid results will update (you'll need to call refresh on the grid panel's view - have a look at the grid api entry)