fnAdjustColumnSizing and FixedColumns
fnAdjustColumnSizing and FixedColumns
milouz
Posts: 3Questions: 0Answers: 0
First of all, thanks for your work, dataTables is awesome ;)
I can't use fnAdjustColumnSizing with FixedColumns.
fnAdjustColumnSizing work on table with dataTables_scroll class, but not on fixed columns.
I need to use it because i have two dataTables in Jquery ui tabs.
my code:
[code]
"aaData": aaData,
"bSort": false, /*pas de tri initial*/
"sScrollY": "360px",
"sScrollX": "100%",
"bScrollCollapse": true,
"bPaginate": false,
"oLanguage": {
"sUrl": "/DIC/ressources/DataTables-1.9.3/examples/examples_support/fr_FR.txt"
},
"fnInitComplete": function(oSettings, json) {
new FixedColumns( this,
{
"iLeftColumns": 5
});
this.fnAdjustColumnSizing();
},
"aoColumns": aoColumns,
"sDom": '<"caption">frtip'
[/code]
any Idea?
note: my code is much more complicated because i need to add colors / hatch... If you think it will be helpfull to post my whole code i can.
I can't use fnAdjustColumnSizing with FixedColumns.
fnAdjustColumnSizing work on table with dataTables_scroll class, but not on fixed columns.
I need to use it because i have two dataTables in Jquery ui tabs.
my code:
[code]
"aaData": aaData,
"bSort": false, /*pas de tri initial*/
"sScrollY": "360px",
"sScrollX": "100%",
"bScrollCollapse": true,
"bPaginate": false,
"oLanguage": {
"sUrl": "/DIC/ressources/DataTables-1.9.3/examples/examples_support/fr_FR.txt"
},
"fnInitComplete": function(oSettings, json) {
new FixedColumns( this,
{
"iLeftColumns": 5
});
this.fnAdjustColumnSizing();
},
"aoColumns": aoColumns,
"sDom": '<"caption">frtip'
[/code]
any Idea?
note: my code is much more complicated because i need to add colors / hatch... If you think it will be helpfull to post my whole code i can.
This discussion has been closed.
Replies
$(window).bind('resize', function () {
that._oTable.fnAdjustColumnSizing();
});
[/code]
Allan
https://github.com/DataTables/FixedColumns/blob/master/media/js/dataTables.fixedColumns.js
https://github.com/DataTables/DataTables/blob/1_10_wip/media/js/jquery.dataTables.js
Allan