ui-grid icon indicating copy to clipboard operation
ui-grid copied to clipboard

gridApi.grid.refresh() no longer triggers custom filter function (after v3.1.1)

Open bowen-cheng opened this issue 10 years ago • 0 comments

After upgrading from v3.1.1 to v3.2.1, when I call gridApi.grid.refresh() function to refresh the grid, the custom filter function (declared under columnDefs) is ignored.

By doing some experiments, I realize that the custom filter function is only triggered in v3.2.1 if we manually put text in the filter box.

This Plunker demonstrates the issue.

In this Plunker, the filter term is changed by clicking on the toggle button. The button also triggers refresh() function, this originally would cause the grid to re-evaluate custom filter function. Now it has lost its functionality.

  • [x] This is a bug report, not a question on how to use the grid.
  • [x] You have searched the open issues to see if this bug has been filed before. We don't want duplicate issues.
  • [x] You have reviewed the tutorials and documentation to ensure you are using the grid correctly. ui-grid.info
  • [x] You are using the latest version of the grid. Older versions are not patched or supported.
  • [x] You have provided steps to recreate your bug. A plunker is even better.

bowen-cheng avatar Jul 14 '16 15:07 bowen-cheng