1. #1
    Sencha User
    Join Date
    Nov 2014
    Posts
    9
    Vote Rating
    0
    JeroenR is on a distinguished road

      0  

    Default Unanswered: Is Arraystore the way to go?

    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

  2. #2
    Sencha Premium Member skirtle's Avatar
    Join Date
    Oct 2010
    Location
    UK
    Posts
    3,747
    Vote Rating
    363
    Answers
    572
    skirtle has a brilliant future skirtle has a brilliant future skirtle has a brilliant future skirtle has a brilliant future skirtle has a brilliant future skirtle has a brilliant future skirtle has a brilliant future skirtle has a brilliant future skirtle has a brilliant future skirtle has a brilliant future skirtle has a brilliant future

      0  

    Default

    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.

Thread Participants: 1

Tags for this Thread