ext分页问题,为什么分页一直无效
Ext.onReady(function(){vardat=[['1','3','4'],['2','5','65'],['3','44','56'],['4','64'...
Ext.onReady(function()
{
var dat=[['1','3','4'],
['2','5','65'],
['3','44','56'],
['4','64','324'],
['5','32','32'],
['6','45','425'],
['7','67','908'],
['8','09','123'],
['9','34','5324'],
['10','54','76']];
var store = new Ext.data.SimpleStore({
data:dat,
fields:["id","pingguo","juzi"]
});
var grid=new Ext.grid.GridPanel({
renderTo:Ext.getBody(),
width:500,
bbar:new Ext.PagingToolbar({
params:{
start:0,
limit:5,
pageSize:5},
displayInfo: true,
displayMsg: '显示{0}-{1}条,共{2}条',
store: store}),
columns:[
{header:"日期",
flex:1,
sortable: true,
dataIndex:"id"},
{header:"苹果个数",
flex:1,
sortable: true,
dataIndex:"pingguo"},
{header:"橘子个数",
flex:1,
sortable: true,
dataIndex:"juzi"}],
store:store
});
}); 展开
{
var dat=[['1','3','4'],
['2','5','65'],
['3','44','56'],
['4','64','324'],
['5','32','32'],
['6','45','425'],
['7','67','908'],
['8','09','123'],
['9','34','5324'],
['10','54','76']];
var store = new Ext.data.SimpleStore({
data:dat,
fields:["id","pingguo","juzi"]
});
var grid=new Ext.grid.GridPanel({
renderTo:Ext.getBody(),
width:500,
bbar:new Ext.PagingToolbar({
params:{
start:0,
limit:5,
pageSize:5},
displayInfo: true,
displayMsg: '显示{0}-{1}条,共{2}条',
store: store}),
columns:[
{header:"日期",
flex:1,
sortable: true,
dataIndex:"id"},
{header:"苹果个数",
flex:1,
sortable: true,
dataIndex:"pingguo"},
{header:"橘子个数",
flex:1,
sortable: true,
dataIndex:"juzi"}],
store:store
});
}); 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询