CSS:
<styletype="text/css"> .x-selectable,.x-selectable *{ -moz-user-select: text !important; -khtml-user-select: text !important; -webkit-user-select: text !important;}
.x-unselectable{ -moz-user-select:text!important; -khtml-user-select:text!important; -webkit-user-select:text!important;} </style>
js:
<scripttype="text/javascript"> var template =‘<div class="x-selectable">{0}</div>‘; var copyFn =function(value){ returnExt.String.format(template, value); } </script>
要复制的列:
<ext:ColumnID="inpNo"runat="server"Text="测点编码"DataIndex="inpNo"Flex="1"> <RendererFn="copyFn"></Renderer> </ext:Column>