Ext Grid 添加分页及工具条
来源:互联网 发布:色温多少对眼睛好 知乎 编辑:程序博客网 时间:2024/06/07 11:26
var store=new Ext.data.Store({
pageSize: itemsPerPage,
});
var panel = new Ext.grid.GridPanel({
loadMask:true,autoScroll : true,
id:'panel',
store : store,
stripeRows : true,
columns : [
{header:'Field Name',dataIndex:'store_field', flex: 2, renderer: yourrenderTitle},
...
. ..
],
style : "border:none",
height : 400,
//工具条
height : '32' , autoWidth:true, autoShow:true,
items:[
{ text: 'User Name'},
{ xtype: 'textfield', name: 'searchUserNameObj', id: 'searchUserNameId' , hideLabel: true, width: 200, height : '28',
listeners: {
change: {
fn: function() { searchNameValue= Ext.getCmp("searchUserNameId").getValue(); },
scope: this,
buffer: 100
}
}
},
{ xtype: 'button', text: 'Search',tooltip: 'Search Rows',
handler: function (){
allUserOutboxStore.load();
}
}
]
}) ,
dockedItems: [{
xtype: 'pagingtoolbar',store: allUserOutboxStore,
dock: 'bottom',
displayInfo: true
}],
itemclick: function(view ,record, htmlElement, rowNumber, eventObj , eOpts){
console.info( record.data["xxx"] );
}
}
});
store.load({
params : {
start:0 ,
limit: itemsPerPage
}
});
store.on('beforeload',function(){
Ext.apply( store.proxy.extraParams, { searchUserName : Ext.getCmp("searchUserNameId").getValue() });
});
return panel;
}
- Ext Grid 添加分页及工具条
- Ext Grid分页
- EXT Grid表格分页
- Ext grid 分页
- ext grid 数据库分页实现
- EXT中的GRID分页示例
- ext desktop grid分页控件
- Ext Grid 分页工具栏增强
- Ext中Grid添加ToolTip
- Ext.grid.Panel远程加载数据分页,提供添加删除修改等操作
- Extjs 指定 grid 和 分页工具条的 store
- EXT grid 属性及方法
- Ext学习之Grid JSON分页
- Ext Grid后台分页完整示例
- Extjs-表格 Ext.grid.GridPanel 分页------------------------------------------------
- Ext grid checkbox 分页 翻页 勾选 问题
- Ext Grid Json分页(asp.net)
- Ext.grid.GridPanel + asp.net 数据分页
- spring 之 aop
- Windows 脚本简述
- HTTP 错误 404.17 - Not Found 解决方法
- http_build_query用法,感觉不错,从手册上抄下来
- Android六个安全威胁守则
- Ext Grid 添加分页及工具条
- Android高手进阶教程(四)之----Android 中自定义属性(attr.xml,TypedArray)的使用!
- Struts2的注解功能
- windows下命令行启动任意软件
- hdu 4334 Trouble
- 【IOS】打开系统设置页面
- flash跨域策略文件crossdomain.xml配置详解
- 使用poi创建Excel(xlsx)
- C# 单用户登录