extjs序号倒序
extjs序號倒序
?? ??? ???? columns : [{
?? ??? ??? ??? ?header : '序號',
?? ??? ??? ??? ?width : 60,
?? ??? ??? ??? ?xtype : "rownumberer",
?? ??? ??? ??? ?sortable : false,
?? ??? ??? ??? ?align : 'center',
?? ??? ??? ??? ?renderer : function(value,metadata,record,rowIndex) {
?? ??? ??? ??? ??? ?return leftStore.getCount()-rowIndex;
?? ??? ??? ??? ?}?? ??? ??? ??? ??? ?
?? ??? ??? ?},
?
?? ???? //重置右表行號
?? ??? ?for(var i = 0; i < rightStore.getCount(); i++) {
?? ??? ??? ?rightStore.getAt(i).set("myRowNum", rightStore.getCount() - i);
?? ??? ?}
轉載于:https://www.cnblogs.com/cdcr/p/9516672.html
《新程序員》:云原生和全面數字化實踐50位技術專家共同創作,文字、視頻、音頻交互閱讀總結
- 上一篇: mysqlcppconn之Connect
- 下一篇: 006-1MOS管工作原理精讲