How to apply Pagination in DataTable?
try this , might help you out.
@bharat_Suthar We want the pagination option which is in the frappe datatables.
We want to load no of records at once but want to show only 20 records on one page and on next page 20 and so on. Please help us out we have attached screenshot of requirement please go through it, we want the same through custom script.
you can either do as they did in framework like this code -
or you can use plugin -
I would recommend instead of trying to paginate, to make a fixed-height container/frame and with a down carrat or arrow and then with an onclick expand that into a full page… we’re talking about an afternoon of DOM manipulation instead of fighting with a library that’s not designed to do what you’re asking.