Hello,
I'm have combo box like this:
Code:
var groupLab = new Ext.form.ComboBox({
id: 'groupLab',
name: 'groupLab',
fieldLabel: 'Kelompok',
emptyText: '',
valueField:'id',
displayField:'val',
selectOnFocus:true,
forceSelection: true,
typeAhead: true,
triggerAction: 'all',
listWidth: 150,
mode: 'local',
store: groupLabStore,
anchor:'95%',
listClass: 'x-combo-list-small',
listeners:{
select:{
fn:function() {
Ext.getCmp('saveGr').focus('', 10);
}
}
}
})
on select event I want the focus change to a button. But, the focus did not change. But when i set the focus to textfield, the focus is change.
So can anyone can help me to fix this?
Code:
var frmDataLayanan = new Ext.FormPanel({
id : 'frmDataLayanan',
height: 100,
autoScroll:true,
frame : true,
title : 'Layanan Px',
iconCls : 'form',
border : true,
labelAlign : 'left',
bodyStyle : 'padding:5px 5px 0 15px',
labelWidth : 100,
items: [{
layout:'column',
border:false,
autoHeight: true,
items:[{
columnWidth:.33,
layout: 'form',
border:false,
items: [listKelLab,groupLab]
},{
columnWidth:.33,
layout: 'form',
border:false,
items: [childLab,{
xtype: 'button',
iconCls: 'icon-save',
id:'saveGr',
text: 'Simpan Kelompok',
handler: function(){
alert('tunggal')
}
}]
}
}]
});