Extjs gridt自适应高度
来源:互联网 发布:linux centos 编辑:程序博客网 时间:2024/06/06 16:49
希望Ext的表格能自适应外层的div大小,但Ext的Grid构造函数的width、height项不支持100%的设置方式,所以改用以下方式初始化:
建立DIV
原文地址:http://seraph115.iteye.com/blog/225157
建立DIV
<div id="content"> <div id="grid-example"></div> <div>建立CSS
#content { width: 100%; height: 100%; }
var grid = new Ext.grid.GridPanel({ store: store, columns: [ {id:'id',header: "序号", width: 50, sortable: true, renderer: keyChange, dataIndex: 'id'}, {header: "数据表表名", width: 100, sortable: true, renderer: hrefChange, dataIndex: 'tableAlias'}, {header: "物理表名", width: 100, sortable: true, dataIndex: 'tableName'}, {header: "类型", width: 75, sortable: true, dataIndex: 'type'} ], stripeRows: true, width: Ext.get("content").getWidth(), height: Ext.get("content").getHeight(), addClass:"grid", tbar: [{ text: '新增模版', handler : function(){ window.location.href = 'templateDefineList4.html'; } },{ text: '删除模版', handler : function(){ } }], bbar: new Ext.PagingToolbar({ pageSize: 15, store: store, displayInfo: true, displayMsg: '当前显示记录 {0} - {1} 总条数 {2}', emptyMsg: '无记录' }) });
原文地址:http://seraph115.iteye.com/blog/225157
阅读全文
0 0
- Extjs gridt自适应高度
- extjs tablepanel 高度自适应问题
- ExtJs非Iframe框架加载页面实现 解决自适应高度
- Extjs之gridPanel的高度自适应问题解决方法
- ExtJs关于grid高度自适应浏览器的问题解决办法
- ExtJs关于grid高度自适应浏览器的问题解决办法
- 利用ExtJs Viewport做iframe屏幕高度自适应
- 自适应高度
- 自适应高度
- 高度自适应
- 自适应高度
- 自适应高度
- 自适应高度
- 自适应高度
- 自适应高度
- 高度自适应
- ExtJs学习笔记(三)——grid高度自适应浏览器
- Vickate_iOS_UILable自适应宽度/自适应高度
- python django 新建项目问题
- 重构之简化函数调用
- 页面拨打电话、发送短信、保存手机号
- yii2 phpexcel使用教程 项目实战
- Extjs 集成kindeditor
- Extjs gridt自适应高度
- EXTJS formpanel返回不走success
- VML中表示空格
- 前端页面刷新
- 栈(JAVA)
- java 日期格式化
- Java: Best way of converting List<Integer> to List<String>
- 【hpu oj 1007 严格递增连续子段 贪心 模拟】
- LeetCode 66. Plus One