extjs Ext.toolbar.Paging分页组件学习

extjs Ext.toolbar.Paging分页组件学习

⭐️来自很多年前的extjs笔记,只是一个归档,不做更新!⭐️

Summary

概述

As the number of records increases, the time required for the browser to render them increases. Paging is used to reduce the amount of data exchanged with the client. Note: if there are more records/rows than can be viewed in the available screen area, vertical scrollbars will be added.

随着记录数据量的增加,这时需要浏览器渲染它们的时间也会增加。分页用来减轻大量数据在客户端的交互。注意:如果更多的记录需要看见在当前可利用的屏幕大小区域中,垂直滚动条将被添加。

Paging is typically handled on the server side (see exception below). The client sends parameters to the server side, which the server needs to interpret and then respond with the appropriate data.

分页通常处理在服务器端(查看下面的例外)。客户端发送参数给服务器端,服务器端理解和返回给合适的数据。

Ext.toolbar.Paging is a specialized toolbar that is bound to a Ext.data.Store and provides automatic paging control. This Component loads blocks of data into the store by passing parameters used for paging criteria.

Note: The store specified must support paging as defined by Ext.data.Store. In particular, this means that Ext.data.ChainedStore is not supported.

问题: 点击下一页都会触发什么?
? 好像它会触发这个grid的store 上一次的配置请求- -

var store = Ext.ComponentQuery.query('attackdefendrulelist')[0].getStore();
var rurl = '/JF/PolicyConfig_AttackDefendRule/getList?ruleset_id='+newValue;
store.proxy.url=rurl;
store.type= 'ajax';
store.reload();

猜你喜欢

转载自blog.csdn.net/inthat/article/details/131265839