.columns.adjust() not working

.columns.adjust() not working

Rishwin123Rishwin123 Posts: 2Questions: 2Answers: 0
edited November 2020 in Free community support

.columns.adjust() is not working on datatable draw but works on datatable init complete? Why so?
I wanted to relayout the fixed columns.
If I use .columns.adjust().fixedColumns().relayout();
it gives me the following error:
Cannot read property 'style' of null

Answers

  • kthorngrenkthorngren Posts: 21,173Questions: 26Answers: 4,923

    That error doesn't occur with this test case:
    http://live.datatables.net/vitidaki/1/edit

    Please update the test case to show the issue or provide a link to your page for debugging.

    Kevin

  • kthorngrenkthorngren Posts: 21,173Questions: 26Answers: 4,923

    Cannot read property 'style' of null

    This can be caused by a mismatch between your HTML table columns and what is defined in Datatables. But we will need to see the problem in order to help.

    Kevin

This discussion has been closed.