FixedColumns: Assign vertical scrolling to fixed right column. How?
FixedColumns: Assign vertical scrolling to fixed right column. How?
Breezemaster
Posts: 3Questions: 0Answers: 0
Hi there,
First. Fantastic thing these datatables. Lifesaver I tell ya. Thanks for the dev & support.
My issue:
I have a series of horizontally and vertically long tables and have therefore employed x & y scrolling.
The information on the right however was very important, so I've locked the last 3 right columns.
All well & good.
Only my vertical scroll bar now appears on the right of the non-locked cells. ie. In the middle of the table!
I need vertical scrolling to appear on the right side of the right fixed columns.
But how!
No sign of where to apply scrolling in the docu.
My code:
var oTable = $('.datatable').dataTable({
"sScrollY": "380px",
"sScrollX": "100%",
"sScrollXInner": "150%",
"bPaginate": false,
"bInfo": false,
"bFilter": false,
"bScrollCollapse": true,
"aaSorting": [[1,'asc'],[2,'asc'],[3,'asc'],[4,'asc'],[5,'asc'],[6,'asc'],[7,'asc'],[8,'asc']],
"aoColumns": dontSort
});
new FixedColumns( oTable, {
"iLeftColumns": 0,
"iRightColumns": 3
} );
Muchos gratis for any help!
First. Fantastic thing these datatables. Lifesaver I tell ya. Thanks for the dev & support.
My issue:
I have a series of horizontally and vertically long tables and have therefore employed x & y scrolling.
The information on the right however was very important, so I've locked the last 3 right columns.
All well & good.
Only my vertical scroll bar now appears on the right of the non-locked cells. ie. In the middle of the table!
I need vertical scrolling to appear on the right side of the right fixed columns.
But how!
No sign of where to apply scrolling in the docu.
My code:
var oTable = $('.datatable').dataTable({
"sScrollY": "380px",
"sScrollX": "100%",
"sScrollXInner": "150%",
"bPaginate": false,
"bInfo": false,
"bFilter": false,
"bScrollCollapse": true,
"aaSorting": [[1,'asc'],[2,'asc'],[3,'asc'],[4,'asc'],[5,'asc'],[6,'asc'],[7,'asc'],[8,'asc']],
"aoColumns": dontSort
});
new FixedColumns( oTable, {
"iLeftColumns": 0,
"iRightColumns": 3
} );
Muchos gratis for any help!
This discussion has been closed.
Replies
Allan
Thanks!