sorting doesn't work with FixedColumns and bJQueryUI

sorting doesn't work with FixedColumns and bJQueryUI

dwhitedwhite Posts: 1Questions: 0Answers: 0
edited May 2012 in General
I'm using jQuery 1.7.1, jQueryUI 1.8.18, DataTables 1.9.1, and FixedColumns 2.0.3.

If I use jquery.dataTables.css and bJQueryUI: false, then I can sort a table just fine.

If I use jquery.dataTables_themeroller.css and bJQueryUI: true, then when I try to sort the table by clicking on a column header, then all of the columns sort except for the fixed column, and the browser shows this error in FixedColumns.js, line 796:

[quote]$("span.DataTables_sort_icon", aoCloneLayout[i][j].cell)[0] is undefined[/quote]

This is the javascript code I'm using to set up the datatable:

[code]

var oTable = $("table").dataTable({
// http://www.datatables.net/usage/features
"bFilter": false, // disable filtering of data
"bJQueryUI": true, // Enable jQuery UI ThemeRoller support
"bPaginate": false, // disable pagination
"sScrollX": "100%", // Enable horizontal scrolling
"sScrollY": 500 // Enable vertical scrolling
});
new FixedColumns(oTable);

[/code]

Replies

  • allanallan Posts: 63,542Questions: 1Answers: 10,476 Site admin
    If you grab the nightly version of FixedColumns from the download page ( http://datatables.net/download/ ) this should be fix.

    Allan
This discussion has been closed.