Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: Javascript
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 15-Mar-13 9:49am
Comments
Sergey Alexandrovich Kryukov at 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 at 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 at 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)

  Print Answers RSS
0 OriginalGriff 365
1 Sergey Alexandrovich Kryukov 329
2 CPallini 270
3 Afzaal Ahmad Zeeshan 204
4 DamithSL 194
0 OriginalGriff 5,515
1 DamithSL 4,451
2 Maciej Los 3,902
3 Kornfeld Eliyahu Peter 3,480
4 Sergey Alexandrovich Kryukov 3,175


Advertise | Privacy | Mobile
Web01 | 2.8.141216.1 | Last Updated 15 Mar 2013
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100