Zebra stripes on filtering

Zebra stripes on filtering

HarpsichordManHarpsichordMan Posts: 4Questions: 0Answers: 0
edited December 2010 in General
Is there a 'best way' to restripe when filters are applied programatically. For example, I have an href outside datatables that applies a filter and I'd like to have the new filtered view re-striped (since odd and even rows can now be next to each other depending upon the data). Obviously, when I clear the filter, I would need to restripe again too. Would appreciate any suggestions. Thanks for the continued phenomenal work.

Replies

  • HarpsichordManHarpsichordMan Posts: 4Questions: 0Answers: 0
    I was using a .each on the TRs to hide/show and figured out, finally, how to properly use fnFilter...which seems to properly deal with striping.
    Thanks -- case closed!
  • allanallan Posts: 63,508Questions: 1Answers: 10,471 Site admin
    Nice one - thanks for the feedback :-). The DataTables API methods are usually the best bet for manipulating the data in a table.

    Regards,
    Allan
This discussion has been closed.