参考这个demo,利用RangeFiltered事件和遍历,判断哪些行没被筛选,拿到没被筛选的行索引再为其添加浮动元素即可。- var myArray=new Array()
- sheet.bind(GC.Spread.Sheets.Events.RangeFiltered, function (e, info) {
- for(var i = 2;i < salesData.length + 1 ; i++){
- console.log(i);
-
- console.log(filter.isRowFilteredOut(i))
- if(filter.isRowFilteredOut(i)==false){
- myArray.push(i)
- }
-
- }
- console.log(myArray)
-
- });
复制代码
|
|