DevExpress / devextreme-reactive

Business React components for Bootstrap and Material-UI

Home Page:https://devexpress.github.io/devextreme-reactive/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

How to override IntegratedFiltering's defaultPredicate

weilu opened this issue · comments

  • I have searched this repository's issues and believe that this is not a duplicate.

I'm using ...

  • React Grid
  • React Chart
  • React Scheduler

Description

I want to trim the leading and trailing whitespaces from filter query before checking if any cell value contains the filter value globally for all filters. I believe the simplest way to achieve this is to override IntegratedFiltering.defaultPredicate but I can't seem to make it work.

Link to the example that reproduces the issue: https://codesandbox.io/s/jovial-shape-292y1?file=/demo.js

Environment

  • devextreme-reactive: 2.7.4
  • react: 17
  • browser: any
  • bootstrap: none
  • react-bootstrap: none
  • material-ui: none

Thank you for using Devextreme Reactive. We use GitHub issues to track bug and feature requests. We process incoming issues as soon as possible. Issues that have been inactive for 30 days are closed. If you have an active DevExtreme license, you can contact us in our Support Center for updates. Otherwise, post your question on StackOverflow.