博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
Extjs:添加查看全部按钮
阅读量:6982 次
发布时间:2019-06-27

本文共 1086 字,大约阅读时间需要 3 分钟。

var grid =new Ext.grid.GridPanel({        renderTo:'tsllb',        title:'产品成本列表',        selModel:csm,        height:350,        columns:[                 csm,                 {header: "编码", dataIndex: "bm", sortable: true,hidden:true},                 {header: "产品", dataIndex: "cp", sortable: true},                 {header: "成本", dataIndex: "cb", sortable: true,align:'left'}                 ],        store:store,        tbar:new Ext.PagingToolbar({            id:'bbar',            emptyMsg:"没有数据",            displayInfo:true,            displayMsg:"显示从{0}条数据到{1}条数据,共{2}条数据",            store:store,            pageSize:50        }),        bbar:[{                pressed: true,                enableToggle:true,                text: '查看全部',                toggleHandler: function(btn, pressed){                    search(10000);                }            }]});
var search = function(pageSize){        store.load({            params:{start:0,limit:pageSize,param:param}});        Ext.getCmp("bbar").pageSize=pageSize;    }

 

转载于:https://www.cnblogs.com/zhutouying/p/3591617.html

你可能感兴趣的文章
C++ 虚函数表解析
查看>>
[SCOI2009]windy数
查看>>
Struts2--Action属性接收参数
查看>>
2012年科技新闻背后的大数字
查看>>
报价单内,同一物料只允许一条行价格记录
查看>>
leetcode 283. Move Zeroes
查看>>
自己的php函数库
查看>>
HDU Problem 1599 find the mincost route 【Floyd求最小环】
查看>>
HDU2017多校联合 contest 1
查看>>
基于DevExpress实现对PDF、Word、Excel文档的预览及操作处理(转载自:http://www.cnblogs.com/wuhuacong/p/4175266.html)...
查看>>
range
查看>>
[Noi2002]Savage 题解
查看>>
特征选择, 经典三刀(转)
查看>>
【Python3爬虫】自动查询天气并实现语音播报
查看>>
新的公司
查看>>
【JavaScript】02.基础语法学习
查看>>
自行学习XAML控件后的简单想法(作业一)
查看>>
python3 集合中的常用方法
查看>>
ECSHOP生成缩略图模糊
查看>>
LayaAir疑难杂症之四:laya引擎自动断点到bundle.js文件中且无报错,但程序不再执行...
查看>>