.Filterable Suggestion Operator Not working

1 Answer 40 Views
Grid
Dale
Top achievements
Rank 1
Iron
Dale asked on 26 Mar 2024, 08:30 PM

I have a simple MVC Grid

with a column that looks like this

        columns.Bound(c => c.FirstName).Filterable(fi => fi.Cell(ce => ce.Operator("contains").SuggestionOperator(FilterType.Contains)));

the grid is just

        .Filterable()

Searching and GPT told me to do it this way, however when I filter that column I still only get the default filter of Equals

https://imgur.com/FewY7E0

1 Answer, 1 is accepted

Sort by
0
Anton Mironov
Telerik team
answered on 29 Mar 2024, 12:49 PM

Hello Dale,

Thank you for the code snippet, the image, and the details provided.

Please note, the pointed approach is working for the Filter Mode - "Row":

.Filterable(ftb => ftb.Mode(GridFilterMode.Row))
Here is a REPL example:

In the example above, the Contains operator is set for the "ShipName" column. Type "Vins" in the input and observe the result.

If your scenario is not using Row Filtering, please share more details and I will try my best to achieve the desired result with your Mode.

Kind Regards,
Anton Mironov
Progress Telerik

Stay tuned by visiting our public roadmap and feedback portal pages. If you're new to the Telerik family, be sure to check out our getting started resources, as well as the only REPL playground for creating, saving, running, and sharing server-side code.

Tags
Grid
Asked by
Dale
Top achievements
Rank 1
Iron
Answers by
Anton Mironov
Telerik team
Share this question
or