Load Initial Data Without Ajax Call
Load Initial Data Without Ajax Call
I am loading data on an initial ajax call that also gets the options, but I don't want the second ajax call (or first from the perspective of the datatable) to go out to get the inital data since I brought it back with the options request. How can I do this?
This discussion has been closed.
Replies
1. Make the Ajax call yourself and then feed the data to the DataTable using fnAddData ( http://datatables.net/api#fnAddData )
2. Let DataTables make the call for you, then in fnInitComplete ( http://datatables.net/ref#fnInitComplete ) the second parameter will be the JSON object returned from the server.
Regards,
Allan
Allan