---
title: "Create Store In extjs"  
description: "Create Store In extjs"  
author: "Anonymous User"  
published: 2016-10-05  
updated: 2016-10-05  
canonical: https://www.mindstick.com/forum/34189/create-store-in-extjs  
category: "sencha cmd"  
tags: ["sencha"]  
reading_time: 1 minute  

---

# Create Store In extjs

I am try to create a [store](https://www.mindstick.com/articles/13125/tips-to-increase-sales-of-your-woocommerce-store) in extjs. but i don't know how to create please help me any one.

## Replies

### Reply by Anonymous User

The Store class encapsulates a client side cache of Model objects. Stores load data via a Proxy, and also provide functions for sorting, filtering 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,
});
```

Thanks.


---

Original Source: https://www.mindstick.com/forum/34189/create-store-in-extjs

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
