Code:
{
x: 2,
y: 10,
xtype: 'label',
text: 'Device Category:'
},{
x:125,
y:7,
xtype:'combo',
store: this.devicecategorycombo,
displayField:'devicecategory_name',
valueField:'devicecategory_id',
name:'devicecategory_id',
typeAhead: true,
mode: 'remote',
emptyText: 'Select Device Category',
triggerAction: 'all',
editable:false,
selectOnFocus:true,
anchor: '26%',
allowBlank:false,
id:'devicecategory_id',
listeners:{select:{fn:function(combo, value){
var comboType = Ext.getCmp('devicetype_id');
comboType.clearValue();
comboType.setValue('Select Device Type');
comboType.store.filter('devicecategory_id', combo.getValue());
comboType.enable();
}}}
},{
x: 2,
y: 38,
xtype: 'label',
text: 'Device Type:'
},{
x:125,
y:35,
xtype:'combo',
store: this.devicetypecombo,
displayField:'devicetype_name',
valueField:'devicetype_id',
name:'devicetype_id',
typeAhead: true,
mode: 'remote',
emptyText: 'Select Device Type',
triggerAction: 'all',
editable:false,
selectOnFocus:true,
anchor: '26%',
allowBlank:false,
id:'devicetype_id',
disabled:true,
lastQuery:'',
listeners:{select:{fn:function(combo, value){
var comboModel = Ext.getCmp('devicemodel_id');
comboType.clearValue();
comboType.setValue('Select Device Model');
comboModel.store.filter('devicemodel_id', combo.getValue());
comboModel.enable();
}}}
}
Please help