Dynamically toggle vertical scroll

Dynamically toggle vertical scroll

ripwitripwit Posts: 4Questions: 0Answers: 0
edited May 2012 in General
I'd like the ability to have the user choose to see a list of rows in the DataTable in either a scrolled fashion (sScrollY) or as a whole document with all rows. The main reason for turning off scrolling would be to allow the user to print the full dataset.

Is there any way to set a flag in the existing oScroll object and do a fnReDraw to re-render with or without scrolling?

Replies

  • koosvdkolkkoosvdkolk Posts: 169Questions: 0Answers: 0
    edited May 2012
    Can't you just destroy the DataTable, and recreate it with different settings? I thought I read somewhere that some init-settings cannot be changed once the DataTable is initialized...
  • ripwitripwit Posts: 4Questions: 0Answers: 0
    Thanks, koosvdkolk - that's just what I needed to do. Well, actually I added the bDestroy:true property and re-instantiated the oTable with different scroll parameters.
This discussion has been closed.