Active FixedColumns function of Datatable after first initialization
Active FixedColumns function of Datatable after first initialization
Hi,
i should need that first istance of datatable start without fixedcolumn active. I want to active this function after another event. My question is: i have tried this one
new $.fn.dataTable.FixedColumns(currentTable, { iLeftColumns: 1 });
and it works, but it need that in first istance "ScrollX" is true but i need ScrollX equal false first time. So can i set "ScrollX: true" later??
Thank you
This question has an accepted answers - jump to answer
This discussion has been closed.
Answers
No - sorry. You would need to destroy the table (
destroyordestroy()) and recreate the table. It cannot be dynamically enabled and disabled.Allan
Ok, thank you...i try to solve my issues in different way. Another question, is possible to "ask" to current istance of datatable if "Fixedcolumn" is active or not??
Not a specific API, although you could use
$( 'div.DTFC_ScrollWrapper', table.table().container() ).length > 0. If that istruethentableis a FixedColumns table.Allan
Yes right, thank you!