View Full Version : How to init combobox with data from server

19 Mar 2011, 7:38 PM
Hello everybody:
In a frompanel we can init a form field like textfield(but combobox) with data from service. What we should do is just to set the form field' name. But it doesn't work when we set a combobox's name. A combobox code like this:

xtype: 'combo',
name: 'EnumDictionary4.Display',
hiddenName: 'EnableSatusID',
valueField: 'EnumDictionaryID',
displayField: 'Display',
forceSelection: true,
emptyText: '???',
selectOnFocus: true,
allowBlank: false,
store: 'NullStore',
fieldLabel: '????',
allQuery: 'ServicePointStatus',
triggerAction: 'all',
anchor: '70%',
itemId: 'cbEnableSatus'

Anybody can tell me why or how to solve the problem?