View code
Copy codeThe Code is as follows:
Var comboxContractType = new Ext. form. ComboBox ({
Name: 'logisticsid ',
FieldLabel: 'logistics company ',
DisplayField: 'logisticsname ',
ValueField: 'logisticsid ',
EmptyText: 'select ',
Width: 330,
Editable: true,
AllowBlank: false,
Mode: 'local ',
LoadingText: 'loading ...',
HiddenName: 'logisticsid ',
// PageSize: 10,
SelectOnFocus: true,
TriggerAction: 'all ',
Store: comboxContractTypeStore = new Ext. data. JsonStore ({
Url: '/pcms/dictionary/logistics. do? Method = findLogistics ',
Root: 'datas ',
TotalProperty: 'totalrecords ',
Fields :[
{Name: 'logisticsid ', mapping: 'logisticsid '},
{Name: 'logisticsname', mapping: 'shortname '}
]
})
});
ComboxContractTypeStore. load ({params: {start: 0, limit: 100 }});
NOTE 3:
Do not set the PageSize attribute
Set the mode attribute to local mode.
Finally, manually load the stroe used. stroe. load ();