Ticket T297948
Visible to All Users

DataGrid - Set search to case insensitive and accent insensitive

created 10 years ago

Hi,
I’m currently using the panel to filter and highlight some data.
However, I found out that it only searches the exact same value as I entered in the textbox, accent sensitive and case sensitive.

For example, if I enter “Quebec”, “Québec” and “quebec” won’t show in the matching rows.
Is there any way for the search to be case and accent insensitive? Or is there an existing workaround?

A property to control both of these settings would be nice in the future too :)
Thanks!

Comments (2)
Lanette (DevExpress Support) 10 years ago

    Hello,

    I've examined our Filtering demo, but haven't managed to reproduce this behavior. See the attached video. It seems that other factors affect this issue. Please send us a sample runnable project which demonstrates the issue. It will help us determine its cause.

    J J
    Jean-Sebastien Parent 10 years ago

      If you have some data with accents in their name, for example if you change "Éric" instead of "Eric" in your database, searching for "Eric" won't return this row unless you type "Éric". The demo you mentionned doesn't have any accent in its data, AFAIK.
      Thanks!

      Answers approved by DevExpress Support

      created 10 years ago (modified 2 years ago)

      Hello,

      Updated:

      The DataSource component can now sort and filter data by a locale with special characters (for example, symbols with diacritics). Specify locale and collator options in the langParams object to implement this functionality: What's New Data Layer.

      You can download these packages for testing:

      JSON
      devextreme@23.1.2-beta devextreme-angular@23.1.2-beta devextreme-react@23.1.2-beta devextreme-vue@23.1.2-beta

      Prior v23.1

      Currently, due to the widget design, these symbols are treated as different characters. To allow searching by both of them if you're using local storage, you can use calculateFilterExpression and define a custom filtering algorithm for this column. If you're using remote data, it's necessary to adjust settings on the server side to achieve this behavior.

        Show previous comments (4)
        Alessandro (DevExpress Support) 6 years ago

          Hi,

          We are working on your problem and need some additional time to research it in greater detail. We will let you know of our progress once we have any results. I hope you will excuse any delay that may arise.

          Artem (DevExpress Support) 6 years ago

            Hi all,

            I just double-checked this case and confirm that the search is case-insensitive by default. At the same time, we don't have a built-in solution for accent insensitive search at the Data Layer API level. So, the suggested approach is valid.
            @Customer56711
            We also have an open ticket (Is it possible to use a case-insensitive filter in a DevExtreme DataGrid) on your behalf and we'll reply regarding the same case in the context of DevExtreme.AspNet.Data. Please bear with us.

            Artem (DevExpress Support) 2 years ago

              Hello,

              The DataSource component can now sort and filter data by a locale with special characters (for example, symbols with diacritics). Specify locale and collator options in the langParams object to implement this functionality: What's New Data Layer.

              You can download these packages for testing:

              JSON
              devextreme@23.1.2-beta devextreme-angular@23.1.2-beta devextreme-react@23.1.2-beta devextreme-vue@23.1.2-beta

              Feel free to share your results after testing. We'll be happy to follow up.

              Disclaimer: The information provided on DevExpress.com and affiliated web properties (including the DevExpress Support Center) is provided "as is" without warranty of any kind. Developer Express Inc disclaims all warranties, either express or implied, including the warranties of merchantability and fitness for a particular purpose. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.

              Confidential Information: Developer Express Inc does not wish to receive, will not act to procure, nor will it solicit, confidential or proprietary materials and information from you through the DevExpress Support Center or its web properties. Any and all materials or information divulged during chats, email communications, online discussions, Support Center tickets, or made available to Developer Express Inc in any manner will be deemed NOT to be confidential by Developer Express Inc. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.