Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Pager widget (no ajax) doesn't work with filtering #668
to get filtering
in the Sex filed type Yes... err I mean female.
the pager still says 1 to 10 of 50 rows.
just ran some tests, when I sort
sortStart -> pagerComplete -> sortEnd are triggered
when I filter
I assume this is the reason for it all, I'm getting no js errors so I'm not sure why it stopped triggering or where it's bailing out yet. the filter does happen which is odd. I'm going to keep digging. Just wanted to post this.
looks like the fix fixed it ;)
here is the trigger fire order now with this change.
Pager Widget w/Ajax
Pager Widget w/o Ajax
If I remove filter_formatter (the commented out block) no filterStart/End at all, it's perfect now.
So the last bug here is just to figure out why each filter that uses filter_formatter called filterStart/End on start, aka remove the commented out block and you'll see it fires 2 times once for each.
I know we already know about this I just wanted to document it someplace. filterInit works great BTW.
also enabling the pager starts a filterStart/End as well.
Without pager widget enabled
[Log] sortStart undefined undefined (show, line 78)
With Pager widget
[Log] pagerInitialized 20 20 (_display, line 78)