This is a migrated thread and some comments may be shown as answers.

KendoGrid datastate Filter not ignoring case

1 Answer 119 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Ajit
Top achievements
Rank 1
Ajit asked on 10 Sep 2020, 03:55 PM

Hi,

i was following the odata server operation example ( https://www.telerik.com/kendo-react-ui/components/grid/data-operations/odata-server-operations/) and i see that the filters in that grid example returns data ignoring case. e.g contains -> 'car'  will return 'Carl'

 

But in my project its not doing the same, its returning data based on case e.g contains -> 'car' will return nothing but contains -> 'Car'  will return 'Carl'.

Our api is made in .net core API upon which Odata is implemented, so we tried (https://github.com/OData/WebApi/issues/812) this but since we are not implementing Odata directly that solution cannot be done.

Can you guys let me know how the backend of your server example is working so that i can have a look as to how it is returning data ignoring case, cause i dont see any toLower() method in your Filter object.

And is there any easy way to implement it, so that i dont have to manually add toLower() method to Filter object everytime there is a Datastate change.

 

Please let me know!! Thanks in Advance.

1 Answer, 1 is accepted

Sort by
0
Stefan
Telerik team
answered on 14 Sep 2020, 06:31 AM

Hello, Ajit,

This is the source code of our oDatav4 service used in the demo:

https://github.com/telerik/kendo-ui-demos-service/tree/master/odata-v4

The repo also contains an example of other services if they are needed.

Regards,
Stefan
Progress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.

Tags
General Discussions
Asked by
Ajit
Top achievements
Rank 1
Answers by
Stefan
Telerik team
Share this question
or