We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy.
Unfortunately, activation email could not send to your email. Please try again.

How to enable non case sensitive Grid sorting?

Usually while sorting is performed, first preference is given to capital letters and then small letters. When you don’t want the discrimination between small and capital letters, you can set enableLocalizedSort API as true to sort both small and capital letters.

Solution

In the following example, enableLocalizedSort is set as true in order to sort the column using non case and culture sensitive comparer function. The enableLocalizedSort API is used to perform localized sort operation.

The enabledLocalizedSort API to be set as true within the script tag for all the platforms as in the below snippet.

Grid rendering code

JS

MVC

ASP.NET

The following screenshot illustrates the output.

C:\Users\ragavee\Desktop\image48_53.png

 Localized sort operation

Article ID: Published Date: Last Revised Date: Platform: Control:
2978 11/28/2014 08/04/2015 JavaScript ejGrid
Did you find this information helpful?
Add Comment
You must log in to leave a comment

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.