I have this data store
mystore= Ext.create('Ext.data.Store', {
id: _id.boxesComboStore,
fields: ['label', 'value', 'id', 'type'],
autoLoad: true,
proxy: {
type: 'ajax',
url: 'url/to/controller',
reader: {
type: 'json',
root: 'MyModel'
}
}
})
How can I easily access the actual data in the store? For example the third record, actual value of type if I have more than one record in the store
If you want the third record, one way to get the data is by using
getAt(id):In order for
Ext.getStore(name)to work, you must define astoreIdfor your store.