View Full Version : xmlReader

8 Mar 2011, 11:07 PM
hi, can anybody help me with XmlReader ? i m sending xml data through response and i want to fetch this xml data in extjs and store it in combobox........ Plz sugest me any solution...

9 Mar 2011, 12:18 AM
Here is an example of a combo that gets populated by records containing id and name columns.

xtype: 'combo',
store: new Ext.data.Store({
proxy: new Ext.data.HttpProxy({
url: 'DealManagerService.asmx/getStates',
method: 'POST'
reader: new Ext.data.XmlReader({
record: 'Table'
}, [{
name: 'id',
type: 'int'
}, {
name: 'name',
type: 'string'
sortInfo: {
field: 'name',
direction: "ASC"
autoLoad: true
mode: 'local',
triggerAction: 'all',
id: 'state',
value: 'All States',
width: 70,
listWidth: 70,
displayField: 'name',
valueField: 'id',
forceSelection: true

9 Mar 2011, 12:39 AM