xtype : 'ComboNested',
allowBlank : true,
alwaysQuery : true,
- displayField : 'fullpath',
+ displayField : 'name',
editable : false,
emptyText : 'Category',
fieldLabel : 'Category',
forceSelection : true,
hiddenName : 'supplier_category_id',
- listWidth : 500,
+ listWidth : 200,
+ maxColumns : 4,
+ maxHeight: 400,
loadingText : 'Searching',
minChars : 2,
name : 'supplier_category_id_name',
triggerAction : 'all',
typeAhead : true,
valueField : 'id',
- width : 260,
+ width : 300,
listeners : {
select : function (combo, record, index)
{
- _this.grid.footer.onClick('first');
+ // _this.grid.footer.onClick('first');
}
},
xns : Roo.form,
},
reader : {
xtype : 'JsonReader',
- fields : [{"name":"id","type":"int"},{"name":"fullpath","type":"string"}],
+ fields : [{"name":"id","type":"int"},{"name":"fullpath","type":"string"},'name', 'cn' ],
id : 'id',
root : 'data',
totalProperty : 'total',