Data Browser - Viewing Site  Sector 23 Code Bank Logged in as:  Guest  




           


Angular ui-grid Skip Filtered Rows on Export
In an Angular ui-grid, when you apply a search filter to exclude a row using the filter cells, that row still appears in the exported result set when you export all rows.
To fix this, update ui-grid.js with the following:

Within the getData function (part of export),
Change the lines

rows.forEach(function (row, index) {
if (row.exporterEnableExporting !== false) {

TO

rows.forEach(function (row, index) {
if (row.exporterEnableExporting !== false && row.visible) {

This will skip the row if it's not visible (filtered out).

Created By: amos 2/13/2017 11:12:21 AM