C#Ext.Net 复制GridPanel的数据
CSS脚步:
<style type= "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脚步:
<script type="text/javascript"> var template = '<div class="x-selectable">{0}</div>'; var copyFn = function (value) { return Ext.String.format(template, value); } </script>
要复制的列:<ext:TextField ID="txt_InvoiceCode" LabelAlign="Right" FieldLabel="发票号码" Flex="1" runat="server" Text="" >
<Renderer Fn="copyFn"></Renderer>
</ext:TextField>