stateload from database

stateload from database

LegaultLegault Posts: 1Questions: 0Answers: 0
edited April 2014 in DataTables 1.9
hi allan, thanks for this awesome tool, i really love datatable :D
english isnt my native languaje , im really sorry if you cant understand what i need
now, i have a datatable with colreorder and colvis, the statesave i managed to save it in database
but now i need to load a "view"(thats mean, the json with the settings) when the user press a button
how i can call the function fnstateload out of the datatable
for example:
var oTable = $("#myTable").dataTable();
$("#my-button").click(function(e){
oTable.fnStateLoad("settings from database");
oTable.Draw();
})
thanks for your help and sorry if you cant understand me
:-)
This discussion has been closed.