Translate Datatable Header

Hi Webix Team, in the following snippet http://webix.com/snippet/e787e492 I want translate a datatable header. I tried refreshHeaderContent(), but this don’t work. Thanks for help.

Hi,

you need to call the function that creates column configuration each time you translate the header. And then redefine the columns and refresh them in the following way:

language = newvalue;
$$("mytable").config.columns = columns();
$$("mytable").refreshColumns();

http://webix.com/snippet/905651a1

Hi Helga, a lot of thanks, it works great.