У меня есть такой магазин, который я использовал для сетки extjs
Ext.create('Ext.data.Store', {
autoLoad : true,
fields : [
{name: 'item_code', mapping: 'item_code', type: 'string'},
{name: 'quantity', mapping: 'quantity', type: 'string'},
{name: 'description', mapping: 'description', type: 'string'},
{name: 'selling_price', mapping: 'selling_price', type: 'string'},
{name: 'discount', mapping: 'discount', type: 'string'}
],
storeId : 'available_products',
proxy : {
type : 'ajax',
actionMethods : 'POST',
url : 'http://192.168.1.6/transactions/distribution_store',
reader: {
type: 'json',
root: 'data'
}
}
});
Я хочу добавить пейджинг в сетку, но я хочу, чтобы это было так
сначала загрузите все данныес json и подкачкой этих результатов на стороне клиента без отправки запросов к серверу.
возможно ли это?как это сделать?
С уважением