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 filtercolId: string | number- the ID of the column where the filter changedcontent: 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
valueparameter of the callback function can be a Date object or an array of Date[] objects since v9.3 - Added in v6.3