mariuszfoltak / angular2-datatable

DataTable - Simple table component with sorting and pagination for Angular2
202 stars 181 forks source link

server side pagination #20

Open amarewgs opened 8 years ago

amarewgs commented 8 years ago

Frankly this is awesome, great job. But is it possible to have the pagination done from the server side response rather than fetching all the data on the client. I mean can we use other third party paginations here, like ng2-pagination?

mariuszfoltak commented 8 years ago

Sadly, but it isn't possible now. Datatable component should works with server side in the future releases, but I can't tell you when it will happen.

ronisaha commented 7 years ago

Any update on this issue?

julioisaias commented 7 years ago

Any update on this issue? [2]

itsnotvalid commented 7 years ago

https://github.com/michaelbromley/ng2-pagination supports using async-piped data and total count... gonna use that instead of this module.

zixsma commented 7 years ago

@itsnotvalid Thanks for sharing.

Ants24 commented 7 years ago

https://github.com/Ants24/angular2-serverpagination-datatable fork from angular2-datatable ,server sorting and server pagination

carvarr commented 7 years ago

Any update on this ?

NitinMali commented 6 years ago

The reason pagination is not re-calculated for dynamic data is because ngOnChanges is not triggered. Try the following and it should work.

in your component: someDataTableArray.push(NEW_ITEM); someDataTableArray = someDataTableArray.slice();

and in html: [mfData]="someDataTableArray"