PDA

View Full Version : Problem Loading ArrayStore on the fly



davisty
31 Aug 2011, 12:31 AM
Hello,

Im making a x-domain ajax call to an external mapquest api. Im receiving jsonp data and am able to parse the data and store it in an array. No problems there ...

My problem is that I cant get the store grid to load. Ive never worked with arraystores before, so I know Im missing something.

I have created a variable array
var opti = [];

I then populate the array. I then wish to load the array store when a button is clicked.
GridStore.load;

var GridStore = new Ext.data.ArrayStore(
autoLoad : false,
fields :['addr'],
data : opti
});
.
What am I missing here? I know it's something stupid

Thank You

hendricd
6 Sep 2011, 6:51 AM
@davisty -- See the data.Store.loadData method. ;)

davisty
6 Sep 2011, 7:36 AM
Thank You Very Much.

On a side note, when will Jesus' sencha touch book coming out?