extjs4 Grid自动换行
2014-03-06 11:02
267 查看
var temp=Ext.create('Ext.grid.Panel', {
title: title.substring(0,10),
iconCls: 'icon-grid-list',
id:id,
forceFit: true,
region : 'center',
store: repStore,
columnLines:true,
closable:true,
columns: [{dataIndex:'usernam',text:'姓名',align:'center'},{dataIndex:'itemtypename',text:'类型',align:'center'},
{dataIndex:'itemcontent',text:'内容',width:500,renderer: function(value, meta, record) {
meta.style = 'overflow:auto;padding: 3px 6px;text-overflow: ellipsis;white-space: nowrap;white-space:normal;line-height:20px;';
return value;
}},{dataIndex:'itemstaname',text:'状态',align:'center'}]
});
title: title.substring(0,10),
iconCls: 'icon-grid-list',
id:id,
forceFit: true,
region : 'center',
store: repStore,
columnLines:true,
closable:true,
columns: [{dataIndex:'usernam',text:'姓名',align:'center'},{dataIndex:'itemtypename',text:'类型',align:'center'},
{dataIndex:'itemcontent',text:'内容',width:500,renderer: function(value, meta, record) {
meta.style = 'overflow:auto;padding: 3px 6px;text-overflow: ellipsis;white-space: nowrap;white-space:normal;line-height:20px;';
return value;
}},{dataIndex:'itemstaname',text:'状态',align:'center'}]
});
相关文章推荐
- ExtJs GridPanel Column 自动换行
- Ext grid显示内容的字数超过单元格可以显示的字数时,如何让其自动换行
- extjs4 grid 列根据内容长度自动换行
- timer实现Grid自动换行(连续相同的id跳到下一行)
- Extjs gridPanel column 每一行的内容自动扩充换行
- ExtJS4 自动生成控制grid的列显示、隐藏的checkbox
- 关于Infragistics UltraWebGrid 单元格自动换行的问题
- Grid++ Reprot报表自动换行设置
- VFP中Grid表格自动换行
- grid单元格内自动换行
- Extjs4 grid根据model自动生成列
- 折腾了一早上的C# WPF ListView+Grid 实现图片+文字 自动换行排列 类似Windows资源管理器效果
- DevExpress GridControl的自动高度和自动换行怎么实现?
- Extjs Grid自动换行
- ExtJS4如何自动生成控制grid的列显示、隐藏的checkbox
- asp.net中label、table、gridview不自动换行的问题
- 让ExtJS里的GridPanel的列能够自动决定宽度
- html页面,文字的自动换行
- Visual Studio快捷键大全例如VS2008版代码自动换行Ctrl+E,W