grid分页死活控制不了记录数
extjs吧
全部回复
仅看楼主
level 1
18004301377 楼主
PagingGridPanel = Ext.extend(Ext.grid.GridPanel, {
constructor: function(){
this["store"] = new Ext.data.Store({
autoLoad: true,
url: "http://localhost:8080/Ext/editgrid.do",
reader: new Ext.data.XmlReader({
record: "row",
idProperty: "id",
totleRecords: "@count"
}, Ext.data.Record.create([{
name: "id"
}, {
name: "type"
}, {
name: "money"
}]))
});
PagingGridPanel.superclass.constructor.call(this, {
renderTo: Ext.getBody(),
height: 400,
width: 350,
sm: new Ext.grid.RowSelectionModel({
singleSelect: true
}),
store: this.store,
bbar: new Ext.PagingToolbar({
store: this.store
}),
columns: [{
header: "ID",
dataIndex: "id"
},{
header: "类型",
dataIndex: "type"
},{
header: "金额",
dataIndex: "money"
}]
});
this.store.baseParams.start == 0;
this.store.baseParams.limit == 3;
}
});
2013年04月14日 07点04分 1
level 3
totleRecords的总数是否获取正常。
2013年04月15日 06点04分 2
1