Is it possible to change sScrollY/sScrollX in the runtime?

Is it possible to change sScrollY/sScrollX in the runtime?

WhatEverWhatEver Posts: 8Questions: 0Answers: 0
edited August 2010 in General
Subject ...

Have tried:
[code]
oTable.fnSettings().oScroll.sY = 100;
oTable.fnDraw();
[/code]
but no luck :(

is here any way to change the height of a scroll area besides defining sScrollY/sScrollX in "%" ?

Replies

  • allanallan Posts: 63,498Questions: 1Answers: 10,471 Site admin
    That would probably work if you have scroll collapse enabled (bScrollCollapse), since there is a check for that. However, if you don't want that - then what you can do is just change the height of the scrolling element "manually" (using DOM methods).

    Allan
  • WhatEverWhatEver Posts: 8Questions: 0Answers: 0
    Tnx,
    [code]
    $(".dataTables_scrollBody").height( ... );
    [/code]
    works just fine :)
This discussion has been closed.