Your users describe the rows they want, and the grid filters to them. Gridsay writes the grid's own filters: several conditions, ranges, relative dates, typos and other languages included.
people in Germany or France earning over 100k
filter country is any of Germany, Francefilter salary > 100000who started last year?
filter startDate on or after 2025-01-01filter startDate on or before 2025-12-31Typos and other languages find their columns and values too:
directors in canda who startd before 2018
filter title equals Directorfilter country equals Canadafilter startDate before 2018-01-01All three were recorded in MUI X Data Grid Premium 9.18.0 on the fast tier, on a sample table of 500 employees.
isAnyOf filter. If the column does not allow isAnyOf, one equality per value, joined with "or".Filtering works on any column that has filter operators. These settings change what Gridsay may answer:
| Setting | Where | With MUI's stock resolver | With the Gridsay helper |
|---|---|---|---|
disableColumnFilter | Grid prop | Not sent. Gridsay answers with filters and the grid ignores them. | Sent. A question that needs a filter is declined. |
filterable: false | Column | Not sent. The answer can filter that column, and the grid applies it. | Sent. A filter on that column is declined. |
filterOperators | Column | Sent as the column's allowed operators. Gridsay uses only those. | The same. |
valueOptions with a value and a label | singleSelect column | Not sent. One label works; a list of labels matches no rows. | Sent. Gridsay writes the stored values. |
examples, allowAiAssistantDataSampling | Column, grid prop | Sent: example values show how a column spells its values, such as "DE" rather than "Germany". | The same. |
Gridsay uses only the operators each column sends, including your own. These are MUI's defaults:
| Column type | Operators |
|---|---|
string | contains, doesNotContain, equals, doesNotEqual, startsWith, endsWith, isEmpty, isNotEmpty, isAnyOf |
number | =, !=, >, >=, <, <=, isEmpty, isNotEmpty, isAnyOf |
date, dateTime | is, not, after, onOrAfter, before, onOrBefore, isEmpty, isNotEmpty |
boolean | is |
singleSelect | is, not, isAnyOf |
Gridsay declines the whole question with one sentence, and the grid stays as it was. A filter compares one column with fixed values, so these cannot be written:
departments with more than 100 people
I can't filter on counts of people per department, since that would be a condition on an aggregate.
Your user reads this sentence. The table stays as it was.people who earn more than their manager
I can't compare a person's salary with their manager's, because the grid has no manager column and cannot compare two columns.
Your user reads this sentence. The table stays as it was.remote people in Germany, or office people in France
I can't apply alternatives where each side has several conditions, such as remote people in Germany or office people in France. Try asking for one side at a time.
Your user reads this sentence. The table stays as it was.With the helper, a filter your grid does not allow is declined too. The sentence is the model's own. If an answer still uses the filter after one correction, the sentence is "Filtering is switched off for this table." or, naming the column, The `email` column can't be filtered.
Each declined question returns status 422 with the code query_not_understood, and is charged: see Refusals and errors.