Mottie/tablesorter

Filter and pager

ganezuu opened this issue · 7 comments

Hi!
Filter widget and pager plugin don't work together.
Any ideas?

Hi Ganezuu!

Well, they do sort of work together... demo - just set the pager option removeRows to false.

I need to figure out how to limit the number of results shown by the filter, and be able to page through them, when the filter is showing results.

Give me some time, or lend me some brain power, to figure out a better method.

any update on this?

I haven't had a chance to mess around with this, but I did find a nice plugin that might work better: https://github.com/jbritten/jquery-tablesorter-filter

I just tried that out, filter+pager works, but column sorting does not work if there is a pager. without a pager you can sort a column by clicking on it.

EDIT: I removed removeRows: false from my tablesorterPager options and it seems to be working well now

Cool!... when I find time, I'll look into integrating that plugin.

Right, so I had a look at things and the big problem is that pager does not integrate at all, it just does a bit of css manipulation at the end of sorting.
I think the right move would be to turn it into a widget. Now to find the time :)...

Hopefully this has been fixed in v2.4. Check out this demo.