Closed jarrettyew closed 6 years ago
You need to enable server-side pagination on your app. Take a look at gem ajax-datatables-rails simple solution.
The server side rendering works well, but there's 2 issues:
Since the solution given could not be integrated with your current gem, is there any suggestion you could provide in the meantime?
@yewness, you still can use this gem along with gem 'ajax-datables-rails'
. just replace the old one.
@mkhairi Yeap, I've got it working. Just need to follow through the steps from ajax datatable then the data will appear in the table.
gem 'jquery-datatables' gem 'ajax-datatables-rails'
Perhaps, it would be great if a documentation can be added for this one. Thanks a lot!
I have about 1000 records to load in a go. When I was loading it, it was taking around 4-5 seconds to load each time. Is there any way to put it into ajax on loading? The setting in datatable seems to prompt errors when I add them.