gridpanel单元格复制。在网上搜的,挺好用
<style type= "text/css" >
.x-selectable, .x-selectable * {-moz-user-select: text! important ;
-khtml-user-select: text! important ;
}
</style>
<!-- overrides to base library -->
<script language="javascript" type="text/javascript">
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>'
);
</script>
本文介绍了一种改进GridPanel单元复制功能的方法,通过CSS样式和JavaScript代码实现选择功能,提高了用户体验。

407

被折叠的 条评论
为什么被折叠?



