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,
loadingText : 'Searching',
minChars : 2,
name : 'supplier_category_id_name',
listeners : {
beforeload : function (_self, o){
o.params = o.params || {};
+ o.params._as_tree = 1;
// set more here
}
},
},
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',