Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

willpaginate plugin vs jquery datatables

I am wondering whether it is a good idea to refactor my Rails code from Rails Willpaginate to JQuery datatables as I am finding it takes lot of time to code Sorting, Ajaxing the calls, Exporting to CSV/Excel etc.

Any experience so far from others about datatables? Do you recommend to go for it with Rails?

Thanks, Arshad

like image 998
smartSAAS Avatar asked Dec 05 '25 19:12

smartSAAS


1 Answers

jQuery Datatables work out of the box independent from a rails app. If you have a lot of rows you might consider to sort them on the server side.

Here is a example for a PHP integration that you might use for orientation for your ruby implementation: http://www.datatables.net/examples/data_sources/server_side.html

This is a rails plugin for datatables: https://github.com/phronos/rails_datatables

So you can perfectly use will_paginate for tables you cover with datatables via ajaxsource.

KR

like image 196
Bijan Avatar answered Dec 08 '25 11:12

Bijan



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!