And welcome to Events for me. And more importantly, welcome to threads in ExtJS.

How to read Ext.data.JsonStore elements ... store.each?:

No, as I said before the store load is _asynchronous_. Do this instead:

Code:
store.on("load", function(s,rs) {
var myArray = new Array();
store.each(function(record) {
alert(record.data.ID);
myArray.push(record.data.ID);
});
});


Makes it slightly more complicated to debug your data loads, but such is the price of progress with Javascript, I guess.

Labels: ,