FixedColumns only when there is horizontal scroll need?
FixedColumns only when there is horizontal scroll need?
marianopeck
Posts: 53Questions: 8Answers: 0
Hi guys. I have a webapp in which I have many tables. Yet, the rendering engine is more or less the same for all of them. FixedColumns are great but they bring understandable overhead. So is there a way (some javascript magic lines) to create the FixedColumns only if I happen to need an horizontal scroll? Because otherwise, it doesn't make sense and I want to avoid adding extra overhead.
Thanks
Thanks
This discussion has been closed.
Replies
if ( oTable.width() > $(".tableContainer").width() ) {
// add FixedColumns
var oTable2 = new FixedColumns( oTable, {
"iLeftColumns": 2,
"iRightColumns": 1,
"sHeightMatch": "auto"
} );
.....
}
Allan