KendoGrid datastate Filter not ignoring case

2 posts, 0 answers
  1. Ajit
    Ajit avatar
    7 posts
    Member since:
    Jan 2020

    Posted 10 Sep 2020 Link to this post

    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.

  2. Stefan
    Admin
    Stefan avatar
    3034 posts

    Posted 14 Sep 2020 Link to this post

    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/.

Back to Top