ext gridpanel单元格复制

来源:互联网 发布:ubuntu启动进入命令行 编辑:程序博客网 时间:2024/05/19 20:40

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>
原创粉丝点击