实现EXT分页的功能 现在又这句话{proxy:new Ext.data.HttpProxy({url:'bbar.jsp'}) 但是不知道该加在哪个位置 我把代码贴一下 大家帮看下 呵呵 谢谢啦
Ext.onReady(
function aaa(){
var storee=new Ext.data.SimpleStore({data:datee,fields:["lmbh","ljbh","ljmc","beizhu","lookBi","update","delete"]});//转换成EXT支持的数据类型
[color=red]var grid = new Ext.grid.GridPanel({ //创建一个表格[/color]renderTo:"hello",
title:"广西门户项目BI管理模块",
height:1230,
width:1030,
[color=red]bbar:new Ext.PagingToolbar({
pageSize:15,
store:storee,
displayInfo:true,
displayMsg:'显示第{0}条到第{1}条记录,一共两条',
emptyMsg:"没有记录"
}),[/color]
viewConfig:{forceFit:true},
columns:[
{header:"栏目编号",dataIndex:"lmbh",sortable:true},
{header:"链接编号",dataIndex:"ljbh",sortable:true},
{header:"链接名称",dataIndex:"ljmc"},
{header:"备注",dataIndex:"beizhu"},
{header:"查看BI",dataIndex:"lookBi",renderer:lookBi},
{header:"修改",dataIndex:"update"},
{header:"删除",dataIndex:"delete"}],
store:storee,
autoExpandColumn:3
});
storee.load(params:{start:0,limit:10}});
});