Just got an work around for the jQuery datatables wrapper [IgnitedDatatables] and made it working on a project to load huge data. As I din get any neat info I had to dig little deep both into datatables plugin and the wrapper and finally made a work around for me. Here in this post I am basically sharing my experience along with keeping records of what and how I did :)
The js I am using on the view to create the datatable and load using ajax is as follow [don try to run on jsFiddle 'cz it has lots of garbage- will clean it up :| ] :
Code on the controller:
And finally the model:
I will write in details on it - how I actually worked on later on this post.
- For the callback function for the wrapper to work you need to create a helper file where you need to put all the callback functions.
- As the wrapper somewhat works as the model should work I have called and made use of it in my model class.