从combobox
,我得到的值为(sat_beli,kon_beli,satuan),我想将焦点设置为下一个单元格(开始编辑)。你可以帮忙吗。
这是我的代码:
{
dataIndex: 'kode_sub',
header: 'Kode Stock',
width: 160,
align: 'left',
editor: {
xtype: 'combo',
allowBlank: true,
mode: 'local',
store: ds_stock,
selectOnFocus: true,
listClass: 'x-combo-list-small',
typeAhead: true,
displayField: 'kode_sub',
itemSelector: 'div.column-center-akun',
valueField: 'kode_sub',
tpl: resultTpl_stock,
listWidth: 600,
lazyRender: true,
listeners: {
select: function (combo, e, rec) {
var invoice = this.getValue();
var index = this.getStore().findExact('kode_sub', invoice)
var record = this.getStore().getAt(index);
var processed1 = record.get('sat_beli');
var processed2 = record.get('konv_beli');
var processed3 = record.get('satuan');
var oSM = gridDetail.getSelectionModel();
var oGrid = Ext.getCmp('grid-Detail');
oGrid.startEditing(oSM.getSelectedCell()[0], oSM.getSelectedCell()[1]);
oGrid.getStore().getAt(oSM.getSelectedCell()[0]).set('sat_beli', processed1);
oGrid.getStore().getAt(oSM.getSelectedCell()[0]).set('konv_beli', processed2);
oGrid.getStore().getAt(oSM.getSelectedCell()[0]).set('satuan', processed3);
oGrid.stopEditing(false);
}
}
}
}
任何帮助将不胜感激。 提前致谢