Create Store In extjs

Posted by  Pawan Shukla
 1842  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.
  1. Re: Create Store In extjs

    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('', {
        extend: '',  
        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,


      Modified On Apr-11-2018 05:21:06 AM