Disable sorting when the datatable is rendered.

Disable sorting when the datatable is rendered.

GowthamjivoxGowthamjivox Posts: 4Questions: 4Answers: 0

when Datatable is getting rendered first time itself data is sorting based on some data. But i want that data should not in sorting when the datatable is rendered first time. But later if i want i can be sorting.

This question has an accepted answers - jump to answer

Answers

  • Tom (DataTables)Tom (DataTables) Posts: 139Questions: 0Answers: 26
    Answer ✓

    Hi

    So you can use order to set the initial ordering to be applied to datatables, if you pass in an empty array then no ordering will be applied during initialisation.

    You can also use ordering to disable a users interaction and ability to order columns via clicking the column headers.

    Hope this helps

    thanks

    Tom

This discussion has been closed.