Am following this link to make ajax calls to load Jquery Datatables Dynamically
http://datatables.net/forums/discussion/3442/x&page=1#Item_10.
Before i start trying i got stuck with my idea here.
So how do the DataTables send the properties like iDisplayLength,iDisplayStart,sEcho to make pagination and display records.
How do i handle this ?
Sample code from Link for quick reference
$.ajax( {
"dataType": 'text',
"type": "GET",
"url": "dtJSON.txt",
"success": function (dataStr) {
var data = eval( '('+dataStr+')' );
$('#example').dataTable({
"aaSorting": [[0, "desc"]],
"aaData": data.aaData,
"aoColumns": data.aoColumns,
"bScrollCollapse": true,
"bFilter": false,
"sPaginationType": "full_numbers",
"bJQueryUI": true,
"aoColumnDefs": data.aoColumnDefs
});
}
} );
I can get the data and column details using ajax but how do i handle the parameters sent to controller in MVC ?
Some assistance would be much appreciated :)
Thanks