Number Filter

Number filters allow you to filter number data.

Unlike Text and Date filters, the Number filter does not have any features beyond those shared with the other simple filters, which are explained in Provided Filters and Simple Filters.

Number Filter Parameters

Number Filters are configured though the filterParams attribute of the column definition. All of the parameters from Provided Filters are available:

buttonsSpecifies the buttons to be shown in the filter, in the order they should be displayed in. The options are:
  • 'apply': If the Apply button is present, the filter is only applied after the user hits the Apply button.
  • 'clear': The Clear button will clear the (form) details of the filter without removing any active filters on the column.
  • 'reset': The Reset button will clear the details of the filter and any active filters on that column.
  • 'cancel': The Cancel button will discard any changes that have been made to the filter in the UI, restoring the applied model.
closeOnApplyIf the Apply button is present, the filter popup will be closed immediately when the Apply or Reset button is clicked if this is set to true.
debounceMsBy default the Text and Number filters will debounce by 500ms. This is because these filters have text field inputs, so time is given to the user to type items in. The Set and Date will execute immediately (no debounce). To override these defaults, set debounceMs to the number of milliseconds to debounce by.
newRowsActionThis property is for when using the Client Side Row Model only. When set to 'clear', updating the data in the grid by calling api.setRowData() (or updating the rowData property if bound by a framework) will clear (reset) the filter. If you instead set this to 'keep', the grid will keep its currently set filter when the data is updated.
Default: 'clear'

In addition, the following parameters are also available:

filterOptionsArray of Filter Options to present to the user.
Options: 'equals', 'notEqual', 'contains', 'notContains', 'startsWith', 'endsWith', 'lessThan', 'lessThanOrEqual', 'greaterThan', 'greaterThanOrEqual', 'inRange', 'empty'
defaultOptionThe default Filter Option to be selected.
Options: 'equals', 'notEqual', 'contains', 'notContains', 'startsWith', 'endsWith', 'lessThan', 'lessThanOrEqual', 'greaterThan', 'greaterThanOrEqual', 'inRange', 'empty'
suppressAndOrConditionIf true, the filter will only allow one condition.
Default: false
inRangeInclusiveIf true, the 'inRange' filter option will include values equal to the start and end of the range.
includeBlanksInEqualsIf true, blank (null or undefined) values will pass the 'equals' filter option.
includeBlanksInLessThanIf true, blank (null or undefined) values will pass the 'lessThan' and 'lessThanOrEqual' filter options.
includeBlanksInGreaterThanIf true, blank (null or undefined) values will pass the 'greaterThan' and 'greaterThanOrEqual' filter options.