Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Handsontable - Allow sorting on specific columns

Tags:

handsontable

Currently turning columnSorting to true, allows one to sort on all columns. However is there a way to specify only certain columns that can be sorted?(Or disable certain columns from being sorted)

like image 531
ShivamD Avatar asked Feb 04 '26 17:02

ShivamD


1 Answers

I know this is an old question but setting the columnSorting option to headerAction: false on the column configuration disabled the sorting for me:

hot = new Handsontable(container, {
    ..
    columns: [
        { data: 0, columnSorting: { headerAction: false }, },
    ],
    ...
})

Its also mentioned in the docs

like image 84
Eddysanoli Avatar answered Feb 13 '26 00:02

Eddysanoli



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!