Javascript 由于本地存储代理,Extjs gridpanel最多显示25行。如何更改此限制值?
我有一个网格面板,其代码为:Javascript 由于本地存储代理,Extjs gridpanel最多显示25行。如何更改此限制值?,javascript,extjs,gridpanel,sencha-cmd,Javascript,Extjs,Gridpanel,Sencha Cmd,我有一个网格面板,其代码为: { xtype: 'gridpanel', x: 10, y: 10, autoScroll : true, // height: 300, width: 300, title: 'Grid Panel', store: 'peopleStore',
{
xtype: 'gridpanel',
x: 10,
y: 10,
autoScroll : true,
// height: 300,
width: 300,
title: 'Grid Panel',
store: 'peopleStore',
columns: [
{
xtype: 'gridcolumn',
dataIndex: 'name',
text: 'Name'
},
{
xtype: 'gridcolumn',
dataIndex: 'gender',
text: 'Gender'
},
{
xtype: 'numbercolumn',
dataIndex: 'age',
text: 'Age'
}
]
}
我的店铺结构是:
Ext.define('ThemeApp.store.peopleStore', {
extend: 'Ext.data.Store',
model: 'ThemeApp.model.peopleModel',
storeId: 'peopleStore',
proxy: {
type: 'localstorage',
id: 'PeopleInfo'
}
});
我有一个添加行按钮。但仅显示25行,其余行位于这25行之后。有人知道这个问题吗?当我的应用程序出现类似问题时,我将代理设置为空字符串“”,这是文档建议的,如果您不想发送限制参数
这也可能是由于商店的原因。非常感谢。更改页面大小有效。在我的情况下,我使用的是本地存储,所以没有设置limitParam的选项,因为我没有向服务器发送或接收数据。页面大小是主要问题。