Results 1 to 4 of 4

Thread: What's the point of a store now?

  1. #1
    Sencha User
    Join Date
    Feb 2013
    Posts
    31
    Vote Rating
    0
      0  

    Default What's the point of a store now?

    If I recall correctly, in ext js 3, the record was the equivalent of a datastructure---it held a model of the data and also the data itself. The store was the equivalent of a DAO---it has methods to load, save, delete, update data. It was an intuitive analogy.

    In ext js 4, the model also has DAO methods... so I'm struggling to understand why this change was made.

  2. #2
    Sencha - Documentation Team
    Join Date
    Mar 2012
    Location
    Lawrence, KS
    Posts
    412
    Vote Rating
    79
      0  

    Default

    Moved to Discussion.

  3. #3
    Sencha - Ext JS Dev Team evant's Avatar
    Join Date
    Apr 2007
    Location
    Sydney, Australia
    Posts
    18,608
    Vote Rating
    874
      0  

    Default

    A store is a container for a group of records, so for example you will bind a store to a grid/tree/view, not a single record. It also has methods for doing various "stuff" to the groups of records (filtering, grouping, sorting).
    Evan Trimboli
    Twitter - @evantrimboli

  4. #4
    Sencha - Documentation Team slemmon's Avatar
    Join Date
    Mar 2009
    Location
    Boise, ID
    Posts
    6,162
    Vote Rating
    257
      0  

    Default

    If you want to listen to events you might want the model in a store, too, since the model itself doesnt' have events tied to its save/load/etc operations.

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
  •