Click here to Skip to main content
15,064,915 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,

can you please explain how to cater for pagination in Javascript.
I am trying to create a table in Javascript and want to iterate using single rows and display 5 rows on a single page. My table has 15 values.

i know the logic to display all the 15 values on a single page, but how do i do it 5 rows per page. how do i read values and write them on pages 5 rows using pagination.

Thanks,
Tushar.
Posted
Comments
Sergey Alexandrovich Kryukov 15-Mar-13 14:56pm
   
I don't think pure client-side pagination makes a whole lot of sense without server side. With big database and big volume of query results, pagination can be a great tool. Do you have such thing?
—SA
Prasad Khandekar 15-Mar-13 16:53pm
   
Hello Tushar,

I totally agree with Sergey. For a small number of data rows (say up to 100), you can use FlexiGird (http://flexigrid.info/), Data Tables (www.datatables.net/) or SlickGrid (https://github.com/mleibman/SlickGrid). You may also experience a little performance degradation with IE browser.

Regards,

Regards,
tusharmathankar 16-Mar-13 17:02pm
   
I want to do pagination on 100 data so plz tell me how i do this.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)




CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900