Skip to main content

filterChange

fires when the filter value is changed

Usage

filterChange: (
value: string | string[] | Date | Date[],
colId: string | number,
content: "inputFilter" | "selectFilter" | "comboFilter" | "dateFilter"
) => void;

Parameters:

The callback of the event is called with the following parameters:

  • value: string | string[] | Date | Date[] - the current value of the filter
  • colId: string | number - the ID of the column where the filter changed
  • content: string - the type of the applied filter ("inputFilter", "selectFilter", "comboFilter", or "dateFilter")

Example

grid.events.on("filterChange", (value, colId, content) => {
console.log("You've entered "+value+" into the "+colId+" column");
});
info

The filterChange event invokes the beforeFilter event.

Change log:

  • The value parameter of the callback function can be a Date object or an array of Date[] objects since v9.3
  • Added in v6.3