Kendo React - Grid - Text filter not working properly if the string contains a colon with a space

1 Answer 36 Views
Filter  Grid Input TextBox
Jason
Top achievements
Rank 2
Iron
Iron
Iron
Jason asked on 26 Jan 2024, 08:43 PM

Greetings,

I have a table row that contains a string: "Disallow: * Siri Suggestions * Camera Access * Screen recording"

When I try to filter it using the following text input: ": " (a colon with a space), I'm not getting any results.

It only works if I type a colon without the space. Please help, thanks!

 

Jason

1 Answer, 1 is accepted

Sort by
0
Accepted
Konstantin Dikov
Telerik team
answered on 27 Jan 2024, 11:03 AM

Hello Jason,

I have tested the described scenario in the following example for the ProductName column, but the filtering works even with a space after the colon:

If the issue on your side persists, please modify the example so it can reproduce the problem. Thus we will be able to test and debug it locally.

Looking forward to your reply.

 

Regards,
Konstantin Dikov
Progress Telerik

Stay tuned by visiting our public roadmap and feedback portal pages! Or perhaps, if you are new to our Kendo family, check out our getting started resources!

Jason
Top achievements
Rank 2
Iron
Iron
Iron
commented on 27 Jan 2024, 02:32 PM | edited

Hi Konstantin,

I'm using { filterBy } from '@progress/kendo-data-query'.
The filter object I'm sending is:

{ filters: [{ field: 'description', operator: 'contains', value: ': ' }], logic: "and" }

 

Thanks!

Konstantin Dikov
Telerik team
commented on 28 Jan 2024, 08:01 PM

Hi Jason,

I have tested the scenario with the filterBy helper method, but the filter still works correctly:

If further assistance is needed, please share a stackblitz example reproducing the issue, so we can debug it locally.

Jason
Top achievements
Rank 2
Iron
Iron
Iron
commented on 28 Jan 2024, 09:14 PM | edited

Hi Konstantin,

After further investigation, I found out the string contains multiple newline characters:
"Disallow:\n    * Siri Suggestions\n    * Camera Access\n    * Screen recording"

so the filter was working as expected. Thanks for your help!

Tags
Filter  Grid Input TextBox
Asked by
Jason
Top achievements
Rank 2
Iron
Iron
Iron
Answers by
Konstantin Dikov
Telerik team
Share this question
or