javascript - Datatables 1.10 - Swap table -
in application have table can have multiple columns, based on date range selected. need able display table containing 20 columns or 50 columns (number of columns based on data range parameters). did that, refreshing page when parameters changed. i'm trying better.
i've created sample shows approach: http://live.datatables.net/fojusec/3
basically i'm swapping "table" new content comes ajax request , i'm calling "datatable" on new table. example works fine, wondering if maybe there better way it, maybe reconfiguring table?
is safe did it? i'm worried leaks.
edit: i'm not sure if datatable object attached table. if i'm removing table dom should removing datatable object also. avoid conflicts. clicked on example time , didn't got errors.
question: best way swap or reconfigure table using datatables 1.10
Comments
Post a Comment