Data Tables with Sortable Columns and Pagination support

646 views
Skip to first unread message

amit modi

unread,
Sep 8, 2011, 2:28:56 PM9/8/11
to play-framework
Hi,

I am trying to retrieve some data from the database. I retrieve this
data as a List.

Right now I am using the HTML table to display the data which I
generate using template tags.

Are there any template tags to create tables with sort able columns
and pagination support or do I need to use JQuery tables or something
like that?

lanoix

unread,
Sep 8, 2011, 3:37:57 PM9/8/11
to play-framework
Hello.

It's rather simple as a DataTable can be based on a HTML table, just
by adding a class on the table and calling the datables init function
at page load... Like here: http://datatables.net/examples/data_sources/dom.html

Or, if you want a better integration with Play, you can follow this
article:
http://www.lunatech-research.com/archives/2011/01/28/playframework-jquery-datatables

Cheers,

lanoix

Lars Aaberg

unread,
Sep 8, 2011, 4:45:51 PM9/8/11
to play-fr...@googlegroups.com
I have used the tablesorter jquery plugin in a play project. It worked very well, and was a breeze to setup.

tablesorter:

--
You received this message because you are subscribed to the Google Groups "play-framework" group.
To post to this group, send email to play-fr...@googlegroups.com.
To unsubscribe from this group, send email to play-framewor...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/play-framework?hl=en.


Reply all
Reply to author
Forward
0 new messages