dynamically change "sScrolly" property
dynamically change "sScrolly" property
hi,
i want to change "sScrolly" property after the datatable has been initialized.
for some reason [code] oTable.fnSettings().oScroll.sY = '10px' [/code] is not working,
then i came across this discussion: http://datatables.net/forums/discussion/2957/how-to-change-feature-values-after-datatable-is-already-initialized/p1 and tried this:
[code]oTable.fnSettings().oScroll.sX = 10;
$('div.dataTables_scrollBody').height( 10)[/code]
it works, but it applies to ALL datatables on the page,
how do i indicate a particular datatable using this method?
thanks
i want to change "sScrolly" property after the datatable has been initialized.
for some reason [code] oTable.fnSettings().oScroll.sY = '10px' [/code] is not working,
then i came across this discussion: http://datatables.net/forums/discussion/2957/how-to-change-feature-values-after-datatable-is-already-initialized/p1 and tried this:
[code]oTable.fnSettings().oScroll.sX = 10;
$('div.dataTables_scrollBody').height( 10)[/code]
it works, but it applies to ALL datatables on the page,
how do i indicate a particular datatable using this method?
thanks
This discussion has been closed.
Replies
it appears, that table opening tag goes AFTER the scroll div (