Change datatable settings on the fly. (such as sScrollY and bPaginate)

Change datatable settings on the fly. (such as sScrollY and bPaginate)

drewhjavadrewhjava Posts: 9Questions: 0Answers: 0
edited June 2011 in DataTables 1.8
Hey. I'm trying to change some of these parameters after the datatable has been drawn. I'm not sure how to do this. I've tried this.

[code] oTable = $("#my-table").dataTable(oST);
var oSettings = oTable.fnSettings();
oSettings.sScrollY = "300px";
oSettings.bPaginate = false;

oTable.fnDraw();

[/code]

Doesn't seem to work. Thanks for any help.
This discussion has been closed.