Ext grid autoExpandColumn (Extjs3.4.0遇到的问题)
来源:互联网 发布:万方查重软件 编辑:程序博客网 时间:2024/05/17 03:07
今天在写grid的时候遇到了个问题
写出来的grid老不出效果
后来经高人指点
autoExpandColumn :''
这个属性必须指定的是id
也就是说
在Ext.grid.ColumnModel中
定义了id属性的那一列
{id:'rule_desc',header: "规则描述", width:240, sortable: true, dataIndex:'rule_desc'}
autoExpandColumn :'rule_desc'
当使用ext2.2时,autoExpandColumn为0时没效果,为1时第2列扩展,为2时第3列扩展;
当使用ext3.0时,autoExpandColumn为0时没效果,为1时第1列扩展,为2时第2列扩展,为3时第3列扩展
Ext.onReady(function(){ var data = [ [1,"EasyJWeb","EasyJF","www.easyjf.com"], [2,"Jfox","huihoo","www.huihoo.org"], [3,"jdon","jdon","www.jdon.com"], [4,"springside","springside","www.springside.org.cn"]];var store = new Ext.data.SimpleStore({ data:data, fields:["id","name","organization","homepage"]});var grid = new Ext.grid.GridPanel({ renderTo:"hello", title:"中国java开源产品及团队", height:150, width:560, columns:[{header:"项目名称",dataIndex:"name"}, {header:"开发团队",dataIndex:"organization"}, {header:"网址",dataIndex:"homepage",renderer:showUrl}], store:store, //当使用ext2.2时,autoExpandColumn为0时没效果,为1时第2列扩展,为2时第3列扩展; //当使用ext3.0时,autoExpandColumn为0时没效果,为1时第1列扩展,为2时第2列扩展,为3时第3列扩展 autoExpandColumn:3}); }); function showUrl(value){ return "<a href='http://"+value+"' target='_blank'>"+value+"</a>"; }
- Ext grid autoExpandColumn (Extjs3.4.0遇到的问题)
- EXTJS中Ext.grid.GridPanel配置项autoExpandColumn的使用方法
- 关于Ext.grid.EditorGridPanel使用中遇到的问题
- Ext GridPanel autoExpandColumn
- ExtJS3 中EXT.encode()处理json的问题及解决方法
- extjs3.2中grid中行的多选和单选问题
- 急救EXT遇到的问题
- Ext3.0学习笔记grid之autoExpandColumn
- 【BUG】ExtJS3.4.0的Grid中垂直滚动条导致列错位的解决方法
- 封装的Ext Grid
- EXT的grid扩展
- ext下的grid
- 安装oracle grid 时遇到的问题
- rac grid重新安装过程遇到的问题
- ExtJs3引包的问题
- Extjs3 grid 嵌套
- Ext.grid.GridPanel 的 loadMask 失效问题的解决
- 关于Ext.grid.GridPanel数字排序有错的问题
- wine完全卸载
- smarty中section的使用
- const_cast应用
- 网页宽度设定
- JavaEE复习笔记
- Ext grid autoExpandColumn (Extjs3.4.0遇到的问题)
- c++ assert()分析
- spring配置头文件
- 突如其来
- wince网络驱动实现原理
- 记录---创建索引
- lwxshow.com资源-BLOG启示录-WORDPRESS博客建设与经营,中文版,pdf,迅雷高速下
- 服务器集群负载均衡(F5,LVS,DNS,CDN)区别以及选型
- 《OpenGL》编程指南学习开篇