Manual order only
Manual order only
ronskyi
Posts: 2Questions: 1Answers: 0
Hi.
In DataTables, how can I provide manual only ordering?
That's mean I need not to order table when click on thead element.
This discussion has been closed.
Answers
Found:
$('th').unbind('click.DT')
Instead of unbind it you could initialize DataTable not allowing sorting. Take a look in
ordering
to lock the sorting to all THeads. orcolumns.orderable
for lock by column.If you use
columns.orderable
it will disable the end user's ability to click a column header to trigger sorting, but still allow the sorting to be defined by the API (order()
) which it sounds like is what you want.Allan