Initialize handsontable instance when data is loaded from API

You can still inject custom HTML inside the header. But then you’d need to dig deeper and find the exact element that holds the header label. Here’s an example https://jsfiddle.net/j1q7c2er/1/

When it comes to sorting, if it is enabled, it shows in all of the columns. However, you can block sorting for a given column using the beforeColumnSort hook (ref: https://handsontable.com/docs/javascript-data-grid/api/hooks/#beforecolumnsort).

Thanks for the reply.

Can you provide any example for blocking sorting for a given column using beforeColumnSort hook using Angular?

Sure, here you go https://jsfiddle.net/s20puba1/2/

Hi @aleksandra_budnik,

Thanks for the example. The issue is resolved now.

Great. I’m happy that I could help.

1 Like