`
mimang2007110
  • 浏览: 232431 次
  • 性别: Icon_minigender_1
  • 来自: 西安
社区版块
存档分类
最新评论

EXT Gridpanel支持复制

 
阅读更多
if(!Ext.grid.GridView.prototype.templates)
{
	Ext.grid.GridView.prototype.templates = {};
}
Ext.grid.GridView.prototype.templates.cell = new Ext.Template(
		'<td class="x-grid3-col x-grid3-cell x-grid3-td-{id} x-selectable {css}" style="{style}" tabIndex="0" {cellAttr}>',
		'<div class="x-grid3-cell-inner x-grid3-col-{id}" {attr}>{value}</div>',
		'</td>');

必须放到onready外面,而且是文件的最下面

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics