I have a grid with some data (user list). For each line, I have many actions, such as updating, deleting, activating, pausing, viewing orders that you name.
Instead of placing so many buttons that fill more than 400-500 pixels, I want to put a drop-down list with the action applied to each field.
The problem is that I canβt just display the combobox in the column row in the exact same way, or am I missing something? Can someone shed some light on this, please?
new Ext.grid.GridPanel({ region: 'center', id: 'usersGrid', store: store, stripeRows: true, autoExpandColumn: 'username', columns: [ { // username }, { // email }, { // last seen }, { // actions combo, it won't show header : '', width : 220, fixed : true, hideable : false, dataIndex: 'actions', renderer: new Ext.form.ComboBox({ store: new Ext.data.SimpleStore({ id: 0, fields: ['abbr', 'action'], data : [ ['suspend', 'Suspend'], ['activate', 'Activate'], ['update', 'Update'], ['delete', 'Delete'] ] }), displayField:'action', valueField: 'abbr', mode: 'local', typeAhead: false, triggerAction: 'all', lazyRender: true, emptyText: 'Select action' }) } ] })