打开APP
userphoto
未登录

开通VIP,畅享免费电子书等14项超值服

开通VIP
extjs的gridpanel的数据内容不能复制解决方法
  extjs的gridpanel的数据内容不能复制解决办法
首先在主页的title下面加入

  <style type= "text/css" >  
    .x-selectable, .x-selectable * {  
        -moz-user-select: text! important ;  
        -khtml-user-select: text! important ;  
    } 
    </style>

然后在ext-all.js后面加入下面代码

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>'  
);

也可以单写一个js,然后在首页中加入该js,要加在最后面;  
本站仅提供存储服务,所有内容均由用户发布,如发现有害或侵权内容,请点击举报
打开APP,阅读全文并永久保存 查看更多类似文章
猜你喜欢
类似文章
【热】打开小程序,算一算2024你的财运
ExtJs4之gridPanel
EXTJS中Ext.grid.GridPanel配置项autoExpandColumn的使...
extjs CheckboxSelectionModel 有选择的显示
Extjs GridPanel用法详解
无废话ExtJs 入门教程十七[列表:GridPanel]
Ext框架的Grid使用介绍
更多类似文章 >>
生活服务
热点新闻
分享 收藏 导长图 关注 下载文章
绑定账号成功
后续可登录账号畅享VIP特权!
如果VIP功能使用有故障,
可点击这里联系客服!

联系客服