现在的位置: 首页 > 综合 > 正文

C#Ext.Net4 如何复制GridPanel列表中的数据?

2018年08月14日 ⁄ 综合 ⁄ 共 716字 ⁄ 字号 评论关闭

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>


抱歉!评论已关闭.