PDA

View Full Version : Dropdown column in a grid panel.



stahl.stalin
1 Sep 2012, 4:41 AM
How can I get a comboxes, textfields in columns of a grid panel in Extjs 4.1.1?
Any sample code base/link will be more appreciated.

droessner
1 Sep 2012, 8:18 AM
Depends on what you are looking to do. You could use the row editing plugin to edit a single row.
http://docs.sencha.com/ext-js/4-1/#!/api/Ext.grid.plugin.RowEditing

Alternatively you could use the cell editing plugin to edit single cells.
http://docs.sencha.com/ext-js/4-1/#!/api/Ext.grid.plugin.CellEditing

If you want to actually display the component in the grid, you'll have to use a user created plugin. Take a look at
http://www.sencha.com/forum/showthread.php?148064-Component-Column-Components-in-Grid-Cells