Open mmrath opened 8 years ago
This would be a issue only when dealing with huge data, for small set of records you could just maintain the data in-memory and work with it. But yeah would be much better if we could just render table based on the number of records in hand. +1 for this feature.
This looks to be the same issue as #138.
I think both should be possible. Holding the data in memory and also fetching on each page change.
I'm submitting a ... (check one with "x")
Current behavior
With server side paging data table expects data in index position relative to the page. For example for second page with page size 10, it expects rows with index 11 to 20 in the data rows. However implementations in almost all backend services generally return an array of 10 objects with index 0-9.
Expected behavior
Data table should just display data in all rows from start(0) to end(9) in case of server side paging. I am referring to example at line 42-46 https://github.com/swimlane/angular2-data-table/blob/master/demo/paging/paging-server.ts
Reproduction of the problem
What is the motivation / use case for changing the behavior?
Please tell us about your environment:
Table version: 0.7.x
Angular version: 2.0.x
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 ]
Language: [all | TypeScript X.X | ES6/7 | ES5]