PDA

View Full Version : Combo Box within Grid



Paras
5 Aug 2010, 10:45 AM
Is there any way to have combo boxes within a grid, but where each row has a different combo box? (because I need to fill in different values for each combo box based on an external data item)

madkris
5 Aug 2010, 4:19 PM
http://www.sencha.com/deploy/dev/examples/grid/edit-grid.html

darthwes
5 Aug 2010, 4:48 PM
Here's ExtJS. (http://www.sencha.com/products/js/)

You want to learn to use the Ext.grid.EditorGridPanel.

Look in the API (http://www.sencha.com/deploy/dev/docs/) or the examples (http://www.sencha.com/deploy/dev/examples/).

Condor
6 Aug 2010, 12:04 AM
Write a beforeedit event handler for the grid that fills or filters the combobox store (only if it is editing the column with the combobox).
Another method would be to write a getCellEditor method for the columnmodel and return different combobox instances.