By Peter Bell

Javascript/AJAX Paging - What do you Use?

It's been a while since I've revisited javascript paging controls. Ideally I'm looking for a single, simple, easily skinnable table control (I don't need an editable data grid, although that might be cool as a separate thing). It need to support ordering by fields (ideally supporting int and date datatypes as well as string to order numbers and dates correctly, but I'll take what I can get). It should be capable of downloading a full data set and paging/ordering locally, but should also have an option to use ajax requests for the paging/ordering for larger data sets. I generally use jQuery stuff wherever I can.

What is everyone using? What are the strengths/weaknesses/recommendations?

Any input appreciated!

Comments
Peter you should check out these cool jQuery plugins. There is a slick DataGrid style component plugin called Flexigrid: http://webplicity.net/flexigrid/ and this one might be nice if you want custom type-in-textbox filtering http://www.tomcoote.co.uk/jQueryColumnFilters.aspx...

Note that jQuery UI will be including many new UI components which one of them will be a DataGrid, or similar just don't know when it'll be coming out. Enjoy!
# Posted By Javier Julio | 7/16/08 3:10 PM
Peter,

Our COOP library has a jQuery based Grid component based on the jQGrid. It is pretty nice, and if you are interested, I could send it off to you. It should be ready for use, just have to finish with a few more unit tests.

Here is a set of examples from the publisher:
http://trirand.com/jqgrid/jqgrid.html

and here is a link to the documentation that has an example of how to use our COOP plugin for the grid:
http://www.secondpersonplural.ca/jqgriddocs/index....

Hope this helps
# Posted By Timothy Farrar | 7/16/08 3:32 PM
jQuery rocks. I did a short stint of Javascript programming with Prototype, then I found jQuery and was really impressed.
# Posted By Paul Houle | 7/16/08 3:40 PM
I've used jQuery and Prototype extensively and dabbled with YUI and Ext a bit, as well. I prefer jQuery hands down because it just feels smoother and more natural than any of the others. As far as I can tell, though, they all do pretty much the same thing in different ways so I think it's more a matter of preference than of strengths/weaknesses.

As mentioned above, look at the jQuery plugins and even the jQuery UI stuff. There's a lot of interesting work going on if you decide to stick with jQuery.
# Posted By Rob Wilkerson | 7/16/08 4:05 PM
Another vote for jQuery! Another plugin worth looking at is the tablesorter plugin which has a helper paging plugin.
http://tablesorter.com/docs/example-pager.html
# Posted By John Whish | 7/16/08 4:22 PM
BlogCFC was created by Raymond Camden. This blog is running version 5.005.