aaSorting by Class Name

aaSorting by Class Name

bryceray1121bryceray1121 Posts: 65Questions: 0Answers: 0
edited October 2010 in General
I am trying to find a way to define the initial sort for multiple tables. As far as I can tell aaSorting is limited to defining a standard column to initially sort by. Is it instead possible to define a class. The class would then be a marker in each table as to which column should be the default sort column.

Thanks for your help.

Replies

  • allanallan Posts: 63,498Questions: 1Answers: 10,471 Site admin
    I'm not 100% sure I follow - aaSorting will work for multiple tables. But is it that you want to change which columns aaSorting is given as it for each table? In which case, you'll probably need to initialise each table individually. You could create a default object which you give to DataTables and alter the setting in that.

    Allan
This discussion has been closed.