Ext复制grid里某一列的值

   
step1:添加css样式。css代码<style type= "text/css" >     .x-selectable, .x-selectable * {     -moz-user-select: text! important ;     -khtml-user-select: text! important ;     }   </style>   step2:修改ext.grid.gridpanel 的prototype,我是自己写了一个新的js文件,记得要在ext-all.js后面引入。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>'   );  
 

你可能感兴趣的:(java,工作)