为何无法翻页

以下代码可以获得数据,但是无法通过点击翻页来获得翻页效果,两种proxy都可以获得数据,但无法得到翻页的参数start和limit,请问该如何解决?环境:xp+domino R7
var store = new Ext.data.Store({

// proxy: new Ext.data.HttpProxy({url:'agjson?openagent'}),
proxy: new Ext.data.HttpProxy({url:'vwjson?openview'}),

reader: new Ext.data.JsonReader({
root:'topics',
totalProperty:'totalCount',
id:'id'
},[
{name: 'id'},
{name: 'title'},
{name: 'author'}
])
});

var grid = new Ext.grid.GridPanel({
store: store,
columns: [
{header: "id", width: 160, sortable: true, dataIndex: 'id',hidden:true},
{header: "title", width: 700, sortable: true, dataIndex: 'title'},
{header: "author", width: 400, sortable: true, dataIndex: 'author'}
],
height:350,
width:700,
title:'权限管理',
trackMouseOver:false,
sm: new Ext.grid.RowSelectionModel(),
loadMask: true,
viewConfig: {
forceFit:true,
enableRowBody:true,
showPreview:true
},
bbar: new Ext.PagingToolbar({
pageSize: 15,
store: store,
displayInfo: true,
displayMsg: 'Displaying topics {0} - {1} of {2}',
emptyMsg: "No topics to display"
})
});

grid.render('grid-example');
store.load({params:{start:0, count:12}});

grid.getSelectionModel().selectFirstRow();
grid.on("rowdblClick",function(grid,rowIndex,e){
alert(store.getAt(rowIndex).data.title);
});
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值