Sort by hidden data

Is it possible to have data in Handsontable sorted by field that is not displayed? I have a data grid that I would like to display that contains a column named sortOrder, but I don't want to display that.

Sorting has to be done on the client side because events are coming in via websockets and have to be reflected in a table.


source to share

1 answer

If you are not showing the column, I am assuming you do not expect the user to be able to manually sort this hidden column. So why don't you just sort your dataset with native JS? At any point during runtime, you can have a function that sorts on that hidden column and then just doesn't display that in your Handson definition.

So yes, the answer is possible. Not showing a column is as simple as defining a parameter columns

and not including a column for that hidden value.



All Articles