O'Reilly logo

Ext JS Essentials by Stuart Ashworth, Andrew Duncan

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Working with stores

Stores are a collection of model instances that allow these models to be manipulated (for example, sorted, filtered, searched, and so on). They also provide a platform for backend interaction. Many of Ext JS' components can be bound to data stores and take care of a lot of the plumbing required to react to changes in the data held within it.

In this section, we will discuss how to construct a simple store and how to perform simple manipulation of the data within it; how to create different views of a dataset using Chained stores; and finally, how hierarchical data can be stored using TreeStores.

Simple stores

To define a store, you must extend the Ext.data.Store class and configure it with a model class that it will hold a collection ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required