EXT可复制等问题处理
this.columns = [new Ext.grid.CheckboxSelectionModel(),new Ext.grid.RowNumberer(),{header : "保单号",width : 130,sortable : true,validate : 'int+',align : 'center',dataIndex : 'gridbaodanghao',editor : new Ext.form.TextField()//这样就可以复制了},{header : "出生日期",width : 70,sortable : true,dataIndex : 'birthday',hidden : true,hideable : checktype(),renderer : function(value, cellmeta, record, rowIndex,columnIndex, store) {if (record.get('baoxianflg') == 6)return value;elsereturn '';}},{header : "畜龄",width : 60,sortable : false,align : 'center',dataIndex : 'age',hidden : false,hideable : checktype(),renderer : function(value, cellmeta, record, rowIndex,columnIndex, store) {if (record.get('bxhcdate') != null) {var bir = record.get("birthday");if (bir != "" && bir != null) {arys1 = bir.split('-');var year = (new Date().getFullYear() - arys1[0]) * 12 * 30;var month = (new Date().getMonth() + 1 - arys1[1]) * 30;var day = new Date().getDate() - arys1[2];var days = year + month + day;return parseInt(days / 30);} else {return "";}} else {return "";}}}, {header : "保险状态",width : 60,sortable : true,align : 'center',dataIndex : 'baoxianflg',renderer : function(value) {if (value == 4)return '未保险';else if (value == 5)return '预保险';else if (value == 6)return '已保险';}} ];