Browse Source

Show the total not filtered count

Dustin Utecht 6 years ago
parent
commit
ef2cda93f7
1 changed files with 4 additions and 2 deletions
  1. 4 2
      src/bootstrap-table.js

+ 4 - 2
src/bootstrap-table.js

@@ -1415,8 +1415,6 @@
           }
           return false
         }) : this.data
-
-        this.options.totalNotFiltered = this.options.data.length - this.data.length;
       }
     }
 
@@ -1474,6 +1472,10 @@
         this.pageTo = o.totalRows
       }
 
+      if (this.options.pagination && this.options.sidePagination !== 'server') {
+        this.options.totalNotFiltered = this.options.data.length;
+      }
+
       const paginationInfo = o.onlyInfoPagination ?
         o.formatDetailPagination(o.totalRows) :
         o.formatShowingRows(this.pageFrom, this.pageTo, o.totalRows, o.totalNotFiltered)