sorting doesn't work with FixedColumns and bJQueryUI
sorting doesn't work with FixedColumns and bJQueryUI
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]
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]
This discussion has been closed.
Replies
Allan