Ngx-datatable: Sorting resets paging should be an option

Created on 7 Nov 2017  路  6Comments  路  Source: swimlane/ngx-datatable

I'm submitting a ... (check one with "x")

[x] bug report => search github for a similar issue or PR before submitting
[x] feature request
[ ] support request => Please do not submit support request here, post on Stackoverflow or Gitter

Current behavior
When sorting event is fired, the page is set back to first one.

Expected behavior
When sorting event is fired, it should stay on current page.

Reproduction of the problem
1) http://swimlane.github.io/ngx-datatable/#client-sorting
2) Select page 4
3) Sort by any column

What is the motivation / use case for changing the behavior?
When you have server side Huge paging, and are, for example, on page 80 from 100- you do some sorting and 'Bang' you are back on page 1. After that you have to get back to page ~20 or 80 to get same results. Very annoying.

  • Browser: [all | Chrome XX | Firefox XX | IE XX | Safari XX | Mobile Chrome XX | Android X.X Web Browser | iOS XX Safari | iOS XX UIWebView | iOS XX WKWebView ]
    Up to date Chrome

Most helpful comment

we need this feature as well.
with server side paging , we expect to stay on the same page after sorting.

All 6 comments

we need this feature as well.
with server side paging , we expect to stay on the same page after sorting.

+1

+1

Any Updates? We got the same issue, which we need a fix for

Any Updates?

Was this page helpful?
0 / 5 - 0 ratings