extjs的gridpanel的数据内容不能复制解决办法
来源:互联网 发布:bat批处理卸载软件 编辑:程序博客网 时间:2024/05/21 20:22
首先在主页的title下面加入
<style type="text/css">.x-selectable,.x-selectable * {-moz-user-select: text ! important;-khtml-user-select: text ! important;}</style>
然后在ext-all.js后面加入下面代码
<script 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>
也可以单写一个js,然后在首页中加入该js,要加在最后面。
转自:http://blog.csdn.net/ssyan/article/details/6316242
(Ext3.4.1有效,其他版本未试)
----------------------------------------------------------------------------------------
若要对单独的gridpanel设置可选择复制,则JS代码可如下设置:
var gridPanel = ...;gridPanel.getView().cellTpl = 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>');
0 0
- extjs的gridpanel的数据内容不能复制解决办法
- extjs的gridpanel的数据内容不能复制解决办法
- extjs的gridpanel的数据内容不能复制解决方法
- extjs的gridpanel的数据内容不能复制解决方法
- ExtJS gridPanel文本不能复制的解决办法
- ExtJs的Ext.grid.GridPanel不能选择复制表格中的内容解决方案
- ExtJs的Ext.grid.GridPanel不能选择复制表格中的内容解决方案
- 修改extjs源码真正解决:ExtJs4.0 GridPanel 数据内容不能选中复制。
- Extjs5 GridPanel的标题和内容不能对齐的解决办法
- ExtJs GridPanel单元格不能选中复制
- ExtJs GridPanel单元格不能选中复制
- ExtJs GridPanel单元格不能选中复制
- ExtJS 简单的gridpanel
- Extjs控制GridPanel中特定单元格的内容及样式
- 不能执行extjs的解决办法
- ExtJs疑难杂症之GridPanel单元格不能选中复制问题
- ExtJs疑难杂症之GridPanel单元格不能选中复制问题
- ExtJs疑难杂症之GridPanel单元格不能选中复制问题
- Eclipse快捷键大全(转载)
- Cracking the coding interview: 查找文中两个单词的距离
- .net / MySQLHelper
- HTML页面嵌入视频和JS控制切换视频
- APACHE服务器httpd.exe进程占用cpu100%的解决方法
- extjs的gridpanel的数据内容不能复制解决办法
- Fast Precomputed Ambient Occlusion for Proximity Shadows
- 【论文写作助手】综述论文行书的思路
- Android利用Fiddler进行网络数据抓包
- MFC获取系统时间的几个方法
- 新年寄望:从小做起,活在当下
- Android利用tcpdump和wireshark抓取网络数据包
- VS2010使用Nunit的断点功能
- mysql 删除单表内多个字段重复的数据