when I set sScrollX to "sScrollX": "800px", I get the scrolling horizontal bar even if the data does not overflow. Is it possible have the scrolling only when the data will overflow similar to css overflow: auto.
This should already be the case. For example try this http://datatables.net/examples/basic_init/scroll_x.html - with the 'sScrollXInner' removed. What browser are you using, and can you post an example please?
Allan - my mistake. There was some additional css that was getting applied by our code that was causing the scroll bar to always show up. when I removed those classes, the table now shows no scroll bar unless it overflows. Thanks
Replies
Allan