View Full Version : ComboBox in EditorGrid needs doubleclick to show up

6 Jul 2010, 11:59 AM
Hello All,
I am trying to use a combobox inside an editorgrid.
My setup looks like :

var grid = new Ext.grid.EditorGridPanel({
renderTo: Ext.getBody(),
stripeRows : true,
clickstoEdit: 1,
iconCls: 'icon-grid',
store: store,
columns: [ {header: "Actions", width: 150, dataIndex: 'actions',editor: combo
{header: "Description", width: 225, dataIndex: 'accDispNm'}]

var combo = new Ext.form.ComboBox({
triggerAction: 'all',
id: 'searchBy',
mode: 'local',
store: ['Test1', 'Test2'],
listeners: {
'select': function(){
}) ;

Now when i gird is initially rendered in order to showup the combo and start editing i need atleast 3 click for the process to complete.
Is there any way i can reduce it to 2 clicks. That is when i click on the cell the combo should be expanded and on next click i can select my item.

Please advise,

Thank you.