Cannot read property 'style' of undefined when use ColVsi and sScrollX
Cannot read property 'style' of undefined when use ColVsi and sScrollX
JasonYao
Posts: 1Questions: 1Answers: 0
Example show below:
var table = $('#demo').DataTable({sScrollX:'100%'});
table.column(0).visible(false);
table.column(0).visible(true);
Load the page, there is an error (Cannot read property 'style' of undefined) and column 0 will not display:
But but but..... After I remove the attribute sScrollX:'100%', it works well.
Any suggestion? I need this attribute to let the table responsive.
This discussion has been closed.