can i replace parameters with my own parameters for ordering?
can i replace parameters with my own parameters for ordering?
shahin_foxx
Posts: 3Questions: 1Answers: 0
i wanted to replace the parameters dynamical with my own parameters but it's not working.
$(function () {
var table = $('#myTable').DataTable();
table.order(["viewResult.sortedColumnIndex"," viewResult.sortedColumnDirection"])
.draw();
});
anyone can help me with that?
This question has an accepted answers - jump to answer
This discussion has been closed.
Answers
If you wish to overwrite the intial, default DataTable sort see https://datatables.net/reference/option/order .
Are the ["viewResult.sortedColumnIndex"," viewResult.sortedColumnDirection"] variables? If so, remove the quotes.
helpful! thank you