Lancelot
Lancelot

Reputation: 1441

Tablesorter pager issue with child row

I have one child row under Coke in the table. I am wondering why is it being counted as filteredRows? How do I make filteredRows not including the child rows in the table? And for some reason, if I pick "Uncategorized", it'll say "1 - 1/ 1 (14)" where it should be "- / (14)"

Also, when I search for "coke" and try to expand the child row by clicking on it (after it's being filtered), it won't show the child row.

Here is the demo

http://jsfiddle.net/CVVV2/

Any help will be greatly appreciated!

UPDATE

Here is the updated demo with the modify code showing filteredRows not working properly under "All Items" and "Drinks". Also, I can't expand the child row after searching for "coke" in the search box.

http://jsfiddle.net/CVVV2/9/

Upvotes: 1

Views: 489

Answers (1)

Mottie
Mottie

Reputation: 86413

I figured out that you'll need to modify this line in the jquery.tablesorter.widgets.js file:

if (c.pager && c.pager.countChildRows || wo.pager_countChildRows) {

to this:

if (c.pager && c.pager.countChildRows || wo.pager_countChildRows || wo.filter_childRows) {

I'll include this modification in the next update.

Upvotes: 1

Related Questions