Ajax Load Datatable
Datatable has been a good tool for displaying data to users. It provides a quick and easy way for user to search and sort record.
However, when it comes to a large number of records, we will face issues like slow loading. Other than that, it will also lead to timeout issue due to the load loading issue.
In order to solve this issue, we can implement ajax loading. This is how we can implement:
1. When user visit to the page, it will load the data separately.
2. After the ajax data is loaded then it will load into the datatable.
1. Create a ItemsDatatable at app/models
2. Items Controller.
3. Items Index.
4. Items coffeescript