Sort just after load

Sort just after load

vitorealvitoreal Posts: 2Questions: 0Answers: 0
edited September 2013 in General
Hi,
I have a table where the first column is set to be order automatically. The problem is that i want it to order just if i click at the column because the first loaded datas of dataTable is ordered by the database(order by).
Thanks.

Replies

  • fbasfbas Posts: 1,094Questions: 4Answers: 0
    you want to not have a default initial sort?

    [code]
    $(document).ready( function() {
    $('#example').dataTable({
    /* Disable initial sort */
    "aaSorting": []
    });
    })
    [/code]


    http://stackoverflow.com/questions/4964388/is-there-a-way-to-disable-initial-sorting-for-jquery-datables
    http://datatables.net/forums/discussion/677/x
  • vitorealvitoreal Posts: 2Questions: 0Answers: 0
    It works.

    Thank you.
This discussion has been closed.