fnAdjustColumnSizing and FixedColumns

fnAdjustColumnSizing and FixedColumns

milouzmilouz Posts: 3Questions: 0Answers: 0
edited July 2013 in Bug reports
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.

Replies

  • omelnizomelniz Posts: 1Questions: 0Answers: 0
    [code]
    $(window).bind('resize', function () {
    that._oTable.fnAdjustColumnSizing();
    });
    [/code]
  • allanallan Posts: 61,446Questions: 1Answers: 10,054 Site admin
    Which version of FixedColumns are you using?

    Allan
  • milouzmilouz Posts: 3Questions: 0Answers: 0
    Allan, V2.0.3.
  • allanallan Posts: 61,446Questions: 1Answers: 10,054 Site admin
    I've actually just committed a fix for this exact issue :-). However, you'll need to use the DataTables 1.10-dev (pre-beta) software and FixedColumns 2.5.0-dev software:

    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
  • milouzmilouz Posts: 3Questions: 0Answers: 0
    Thanks Allan, I'll try it!
This discussion has been closed.