This is working for me 100%:
Code:
var store = Ext.create('Ext.data.ArrayStore', {
fields: [
{name: 'company'},
{name: 'price', type: 'float'},
{name: 'change', type: 'float'},
{name: 'pctChange', type: 'float'},
{name: 'lastChange', type: 'date', dateFormat: 'n/j h:ia'}
],
proxy : {
type : 'ajax',
url : 'data.php',
reader : {
type : 'json',
root : 'data'
}
}
});
var values = [];
store.on('load', function() {
store.each(function(rec) {
values.push(rec.get('company'));
});
console.log(values); //is an array with all companies
});
store.load();