Customizing the page numbers to show in pagination using jquery datatables -


i using jquery datatables , implementing custom server-side processing loading table records. default, api returns 20 records @ 1 time , let's assume total records 200 , showing 10 records per page(this fixed).
problem since 20 records loaded in table , 10 rows per page, pagination shows 2 page numbers 1 , 2. want show possible page numbers 20 (200/10).
there way can set value no of pages want show or other way achieve this?

p.s. in api getting total no of records that's not problem. can't figure out how set value page numbers.

set recordstotal , recordsfiltered 200 response , length 10 request. don't need have api return 20 can return 10 (your page size) each call. datatable take care populate table size.


Comments

Popular posts from this blog

java - Oracle EBS .ClassNotFoundException: oracle.apps.fnd.formsClient.FormsLauncher.class ERROR -

c# - how to use buttonedit in devexpress gridcontrol -

nvd3.js - angularjs-nvd3-directives setting color in legend as well as in chart elements -