Full reload of column header

Tags: #<Tag:0x00007efc607f0810>

Hello,

I want to use i18n in my app and that’s why I need to reload the header of the columns dynamicaly each time I change the language.
I tried the hotInstance.render() but it’s not working.
Do you have any ideas ?

Thanks.

Hey @alexandre.quere

you may need to destroy() the table. Before doin that you can also check if the https://handsontable.com/docs/7.4.2/Hooks.html#event:afterGetColHeader is able to help you change those headers. It also runs with the render() method.

Thank you Aleksandra for your answer, but I use angular wrapper and if I destroy() my hotInstance, I’m not sure I will be able to use the new handsontable()

And the https://handsontable.com/docs/7.4.2/Hooks.html#event:afterGetColHeader ? Can you share a demo that shows te behavior?

Unfortunately, I can’t go deeper than an ugly window.location.reload();