Sorting and alternating row colors

Sorting and alternating row colors

ccasadccasad Posts: 2Questions: 0Answers: 0
edited April 2013 in General
My table's rows are not keeping the alternating colors when sorting. Actually when the table appears the rows aren't even correct. There must be something with my table causing this, but I am just not seeing it.

As per http://datatables.net/forums/discussion/13102/soring-break-row-color-background/p1 the alternating row colors are just supposed to work.

Here is an example:
http://live.datatables.net/ukeqoc/edit#javascript,html,live

Any help is appreciated.

Thanks,
Chris

Replies

  • ccasadccasad Posts: 2Questions: 0Answers: 0
    Ok problem solved. I am using Drupal7's theme_table function which happens to add the "even" and "odd" classes to each row by default. This seems to interfere with DataTable's rendering of the column colors. Once I turned this functionality off for the Drupal theme_table function everything seemed to work.

    --Chris
This discussion has been closed.