How to order my table default not in JS

How to order my table default not in JS

AnGe7AnGe7 Posts: 5Questions: 2Answers: 0

Hi,

I have a datatable fill with ajax query, all data are send in right order (with sql query) but datatable change the order in JS

How to fix the order at the start ?

Thank you,

Answers

  • kthorngrenkthorngren Posts: 20,269Questions: 26Answers: 4,765

    If you don't want to allow the users to change the order you can use ordering to disable table ordering and display it in the order returned.

    Or you can use order to set the initial order of the table.

    Kevin

This discussion has been closed.