https://datatables.net/examples/api/multi_filter.html:-Pagination button not working.
https://datatables.net/examples/api/multi_filter.html:-Pagination button not working.
aatish
Posts: 7Questions: 2Answers: 0
Individual column searching (text inputs): In this example while doing individual search column from footer search, it is not allowing me to go to next page when i click on next button first time while on second click it is working fine i.e. i can see the second page.
Please advise me in this issue. Thanks in advance.
This discussion has been closed.
Replies
The example works fine, so you must be doing something different. Note that "Next" will do nothing if there is only one page of visible data.
when i search 's' from position search text in footer and i click on next button then for first click it is not going on next page whereas when i again click it, it is working fine. You can try searching in any footer search column. Overall this example is working fine. Please advice. Thanks.
This example.
Steps to reproduce:
Position
column's footer input elements
- table correctly filters2
paging button without blurring the input element's focusIf you could write bug reports in this manner in future, with reproducible steps it would greatly help - thanks.
The issue here is the use of both the
keyup
and thechange
events. When you click outside the input element after entering thes
it will trigger the change event and thus filter the table. That in turn causes it to reset the paging - so the paging that you have just set, will have been displayed, but is immediately overwritten be the filtering redraw.Fix options:
change
eventMy preference is the latter, and I've committed the fix.
Thanks for letting me know about this issue.
Allan