Results 1 to 2 of 2

Thread: Is Arraystore the way to go?

  1. #1
    Sencha User
    Join Date
    Nov 2014
    Posts
    9
    Vote Rating
    0
      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,790
    Answers
    583
    Vote Rating
    390
      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.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •