Datatables plugin columns fix don’t start

Datatables plugin columns fix don’t start

zeldax54zeldax54 Posts: 1Questions: 1Answers: 0
edited August 2017 in Free community support

This is the situation; I have three html tables created programmatically in my php page. In document ready try to start the plugin .

$(document).ready(function(){
 $('.genetictable').each(function(){

       var tabla = $(this).DataTable( {
          scrollY:        500,
          scrollX: true
       } );
    new $.fn.dataTable.FixedColumns( tabla , {
    leftColumns: 3
 } );
}); 

The plugin starts well, but the fixedColumn functionality don’t start until I manually click in column for order it.

After

new $.fn.dataTable.FixedColumns( tabla , {
    leftColumns: 3
 } );

I try: Order programmatically :

 tabla.column(3).data().sort();

draw() functionality :

tabla.draw( 'page' );
tabla.draw( false ); 

Try draw() and order functionality:

 table.order( [[ 3, 'desc' ]] ).draw( false ); 

None works
The functionality also start if push f12 or inspect element in Mozilla.

Any change to achive this for my multiple tables?

This discussion has been closed.