Server-side sorting

Hi all,

since I need server-side sorting, I’ve decided to use “beforeColumnSort” hook in order to call the server and update table data. I was wondering how can I:
1- stop propagation of “columnSort”
2- show cater up/down poroperly

about the second, I was thinking to render custom header, but it would be more effective if I can use the original header renderer and “cheat” the sorting plugin in order to show the cater.
Do you have any suggestion?

The other alternative is just to produce my own header and handle everything externally from HOT, however, I would like to not to follow this path.

Thanks to everyone and thanks for the great product
Best
Marco

Hi @marco.abitabile

there are some issues related to the sort indicator so as proposed here

The other alternative is just to produce my own header and handle everything externally from HOT, however, I would like to not to follow this path.

you may consider adding a custom icon instead of the predefined one. You can add it via colHeaders function. Here’s a prototype that can help Handsontable example - JSFiddle - Code Playground

When it comes to question 1, you can return false via beforeColumnSort hook like here Handsontable example - JSFiddle - Code Playground