-
5 Mar 2013 12:32 PM #1
What's the point of a store now?
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.
-
5 Mar 2013 1:00 PM #2
Moved to Discussion.
-
5 Mar 2013 1:11 PM #3
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
Sencha Developer
Twitter - @evantrimboli
Don't be afraid of the source code!
-
5 Mar 2013 3:20 PM #4
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.


Reply With Quote