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',
},
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',