ggmod / angular-2-data-table-demo

Demo application and examples for the Angular 2 data table (https://github.com/ggmod/angular-2-data-table)
MIT License
29 stars 98 forks source link

Data not loading as intended when page limit is changed #13

Open madhavaramkirankumar opened 6 years ago

madhavaramkirankumar commented 6 years ago

Data table pagination is not working as intended. Steps to Reproduce:-

  1. Open https://ggmod.github.io/angular-2-data-table-demo/ 2.Goto Films Table (last table present in the above link) and click next button of pagination
  2. Once you are in page 2, change Max results to 3.
  3. Navigate to previous pages (click on "<" button). When you are in page 1 you will see records indexed 3,4,5.
  4. One more time click "<" button, then you will see records as 123.

When we are in step 4 the "<" button should be disabled and also data should not load in this way. I would recommend when the page limit is changed navigate to page one and reload the data from page one. Behind the screen I would say reset page number to zero, offset to zero.

amaraneniakash commented 6 years ago

Is there any one who fixed this issue