Archive

Posts Tagged ‘store data’

ExtJS 4 – get data from the Store

May 18th, 2012 No comments

If you need to get data from the Store object, you can do the following:

var myData = Ext.pluck(storeObj.data.items, 'data');

The return value is a two-dimensional array of structures similar to the above:

// myData = [ ["1", "val1"] , ["2","val2"] ]
Categories: JavaScript Tags: ,