Sort Desc AJAX
Sort Desc AJAX
Hi There.
I am having an issue with this sorting the following. It loads everything fine and sorts by the correct column, however, it's ascending. I would like to have it sort on load descending but am not sure how to do so. Any advice would be greatly appreciated. Thanks
Derrick
$('#myTable').dataTable({
"bProcessing": true,
"bAutoWidth": false,
"bJQueryUI": true,
"sAjaxSource": "/path/to/service/",
"aoColumns": [
{ "mDataProp": "LabNumber", "sType": "string"},
{ "mDataProp": "DateClosed" },
{ "mDataProp": "ConsumerName" },
{ "mDataProp": "Status" },
]
});
I am having an issue with this sorting the following. It loads everything fine and sorts by the correct column, however, it's ascending. I would like to have it sort on load descending but am not sure how to do so. Any advice would be greatly appreciated. Thanks
Derrick
$('#myTable').dataTable({
"bProcessing": true,
"bAutoWidth": false,
"bJQueryUI": true,
"sAjaxSource": "/path/to/service/",
"aoColumns": [
{ "mDataProp": "LabNumber", "sType": "string"},
{ "mDataProp": "DateClosed" },
{ "mDataProp": "ConsumerName" },
{ "mDataProp": "Status" },
]
});
This discussion has been closed.