Posted 9 January 2025, 10:20 am EST - Updated 9 January 2025, 10:26 am EST
How to turn off Flexgrid Sort Index?
Posted by: abhijeet.dey on 9 January 2025, 10:20 am EST
-
-
Posted 10 January 2025, 3:27 am EST
Hi Abhijeet,
>> we are seeing the number one sometimes when we sort on a column, what does this signify?
The number specifies the order preference for sorting columns when Multi column sorting is enabled as Sorting Column 1 and then sorting Column 2 would give a different result from sorting Column 2 and then Column 1.
>> and is there any way to turn it off ?
Yes, you can turn it off by setting the following CSS:
.wj-cell.wj-header .wj-sort-index { display: none; }
But I do not recommend it because it can be confusing for the users to understand the sorting behavior when multiple columns are being sorted.
Instead, If your use case do not require sorting multiple columns at once, I would recommend you to simply set the allowSorting property as ‘SingleColumn’ so only one column can be sorted at once.
For reference, please check the following sample application.
I hope this clarifies any confusion regarding the sorting index.