Disable selected (sorted) column highlighting.

Disable selected (sorted) column highlighting.

joeldrjoeldr Posts: 4Questions: 1Answers: 0
edited May 2013 in General
Seems like this should be an easy one but I can't locate the answer.

I'm using datatables 1.9.4 with the bootstrap as discussed in this blog post http://datatables.net/blog/Twitter_Bootstrap_2. I've got it working but what is different from the example, is that when I sort a column the column cells are highlighted purple via the
table.dataTable tr.odd[even] td.sorting_1 class.

How do I disable this?

I included DT_bootstrap.css, DT_bootstrap.js, and I'm getting jquery.dataTables.min.js and jquery.datatables.css from the CDN.

I hope that is enough information, I can't easily link to an example.

Thanks,

Joel

This is what my script section looks like.
[code]

$(document).ready(function () {
$('#tablelist').dataTable({
"sDom": "<'row'<'span6'l><'span6'f>r>t<'row'<'span6'i><'span6'p>>"
});
});

$.extend($.fn.dataTableExt.oStdClasses, {
"sWrapper": "dataTables_wrapper form-inline"
});

[/code]

Replies

  • oktav2k3oktav2k3 Posts: 6Questions: 0Answers: 0
    Try to not include the jquery.datatables.css file. DT_bootstrap.css should cover everything.
  • allanallan Posts: 63,516Questions: 1Answers: 10,472 Site admin
    Use the bSortClasses option.

    Allan
  • joeldrjoeldr Posts: 4Questions: 1Answers: 0
    edited May 2013
    Thanks, I overlooked bSortClasses.

    I also didn't realize jquery.datatables.css and DT_bootstrap.css were mutually exclusive, I thought DT_bootstrap.css was just some overrides. This information was very timely as it solved another problem I was just having!

    Regards,

    Joel
This discussion has been closed.