Column visible property not working when localization is used

Column visible property not working when localization is used

pradyumnspradyumns Posts: 1Questions: 1Answers: 0

Hi,
we are working with DataTables since quite long & recently we came up with the requirement of using localization with dataTables.

We were able to complete this, however, now we get an "Cannot read property 'style' of undefined" when we are trying to hide a column dynamically.

We believe that it happens because of localization, so just wanted to know if anybody has come across the same situation or if this is a bug in DataTables.

Appreciate any help!!

Answers

  • allanallan Posts: 63,464Questions: 1Answers: 10,466 Site admin

    My guess is that you are trying to hide the column before the table has initialised - you need to do it with either columns.visible or inside initComplete if you are doing it when you initialise the table.

    If you link to a test case showing the issue I can take a look.

    Allan

This discussion has been closed.