Server side ajax data rows not styled with themeroller

Server side ajax data rows not styled with themeroller

kbaumkbaum Posts: 2Questions: 0Answers: 0
edited January 2012 in General
I am using jqueryui themeroller with server side processing.

[code]
$(function() {
$("#report_table").dataTable({
"sAjaxSource" : "/analytics/search.datatables",
"aaSorting" : [[0, 'asc']],
"aoColumns" : [
{"sName":"visitor_type"},
{"sName":"action_taken"},
],
"bServerSide" : true,
"fnServerData" : railsDatatables,
"bJQueryUI": true
});
});
[/code]

Everything comes styled except the data in the rows. Is there something special i need to do?

thx!

Replies

  • allanallan Posts: 63,538Questions: 1Answers: 10,476 Site admin
    ThemeRoller doesn't currently have any classes for row strips, so you just need to add a couple of custom CSS definitions - tr.odd {} and tr.even {}

    Allan
  • kbaumkbaum Posts: 2Questions: 0Answers: 0
    Gotcha. So just to clarify, themeroller does none of the styling of the data rows on this page?

    http://datatables.net/styling/themes/smoothness

    Thanks!
This discussion has been closed.