Sort images are hidden when using background image for cells
Sort images are hidden when using background image for cells
I have a table that was working fine w/DataTables, but when the css changed to use a background image for the headers, the sorting images no longer work. This must be a common scenario - is there a known workaround?
Here's the offending css:
.table-standard th{
...
background: #c3cfd5 url(Images/bkgd-table-header-blue.gif);
...
}
Here's the offending css:
.table-standard th{
...
background: #c3cfd5 url(Images/bkgd-table-header-blue.gif);
...
}
This discussion has been closed.
Replies
Allan
Yes, that was my assumption. Here is my dataTable initialization (I think I'm already using the jquery ui option here, but is there more to do?):
oTable = $("#Students").dataTable({
"bPaginate": false,
"bLengthChange": false,
"bFilter": false,
"bSort": true,
"bInfo": false,
"bAutoWidth": true,
"bSearch": false,
"bStateSave": true,
"jQueryUI": true,
"aoColumns": [{ "bSortable": false }, null, { "bSortable": false }, null, null, null, { "bSortable": false}]
});
I tried moving the background image to the thead (below) but still no sort images:
.table-standard thead{
background: #c3cfd5 url(Images/bkgd-table-header-blue.gif);
}
I should note that clicking on the header does cause the sort to be applied, but there is no control over asc/desc - it just toggles the sort back and forth.