View Full Version : Is Arraystore the way to go?

6 Jan 2015, 2:12 AM
So i get a array with objects back from a ajax call. Now i want to display this in a grid. Which store is the best solution for this problem?

Just to be clear, the array looks like this: [object, object,object,object]
All the objects have the same attributes though

6 Jan 2015, 7:02 PM
The Array reader (used by ArrayStore) is for arrays of arrays.

From what you've described it sounds like you need a Json reader and an Ajax proxy.

Personally I wouldn't use either ArrayStore or JsonStore, I'd always use a plain store and configure the reader directly instead.

You'll find loads of information about configuring stores with suitable proxies and readers in the API docs.