Previous / next editing buttons example COMBINED with search does not work
Previous / next editing buttons example COMBINED with search does not work
https://editor.datatables.net/examples/api/backNext.html
When you do a search to filter out results, surely the ideal functionality would be that the previous / next buttons in the edit modal, would not still use the whole unfiltered table to cycle through?
Would these be relatively easy to implement, or a whole rework of this example?
This discussion has been closed.
Replies
I completely concur! The solution is to use the new API in 1.10 - specifically the
rows().nodes()
method, and tell therows()
selector to pick only the rows which are in the filter result through theselector-modifier
.I'll include the updated code in the next Editor release, but for now, this is the updated code:
Previous button:
Next button:
Regards,
Allan
Wow great!!