Home > DeveloperSection > Forums > Create Store In extjs
Pawan Shukla

Total Post:38

Posted on    October-05-2016 5:25 AM

 sencha cmd Sencha 

 1 Reply(s)
 694  View(s)
Rate this:
I am try to create a store in extjs. but i don't know how to create please help me any one.

aditya kumar Patel

Total Post:254

Posted on    October-05-2016 5:31 AM

The Store class encapsulates a client side cache of Model objects. Stores load data via a Proxy, and also provide functions for sortingfiltering and paging the model instances contained within it.

Creating a Store is easy - we just tell it the Model and the Proxy to use for loading and saving its data:

var Store=Ext.define('MyApp.store.Users', {
    extend: 'Ext.data.Store',  
    model: 'MyApp.model.User',
    proxy: {
        type: 'ajax',
        url: '/api/dashboard',        
        reader: {
            type: 'json',
            root: 'Users',
            totalProperty: 'TotalCount'
    remoteSort: true,
    sorters: [{
        property: 'UserName',
        direction: 'asc'
    autoLoad: { start: 0, limit: 5 },
    pageSize: 5,


Don't want to miss updates? Please click the below button!

Follow MindStick