ShivamD
ShivamD

Reputation: 961

Handsontable - Allow sorting on specific columns

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)

Upvotes: 2

Views: 847

Answers (1)

Eddysanoli
Eddysanoli

Reputation: 783

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

Upvotes: 1

Related Questions