Datatable ordering issue
Datatable ordering issue
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 discussion has been closed.
Replies
The array should be in the format
[ integer, string ]
where the string can beasc
ordesc
. It looks like you are passing in two strings. They look like variables, and perhaps whatever server-side environment should be replacing them, but it doesn't look like it.Allan
This is a duplicated post to https://datatables.net/forums/discussion/comment/94745/
Agreed - closing this thread.
@shahin_foxx - Please do not post duplicates.