Tuesday, January 3, 2012

ExtJS 4: get array data from store

var arrayData = Ext.pluck(store.data.items, 'data');
//arrayData = [ ["1", "value1"] , ["2","value2"] ]
 
Reference:
http://stackoverflow.com/questions/2526764/how-to-retrieve-json-data-array-from-extjs-store 

3 comments:

Anonymous said...

Thank you very much for this post!!!

Anonymous said...

Thanks, man!

Unknown said...

Ha - just what I needed!

Thanks brother.