paginate not working on custom multi column sorting

paginate not working on custom multi column sorting

chris9090chris9090 Posts: 4Questions: 0Answers: 0
edited March 2011 in General
Hi,

I've got very simple case of multicolumn sorting, when enabled it stops paginate and displays all the table rows (on a single page).
After I click anything than it all works as intended (e.g. sort click or display 25).
My Code:

$('#MyTableName').dataTable({ "aaSorting": [[8, 'dsc'], [7, 'dsc'], [6, 'dsc']] });

[code]
$('#MyTableName').dataTable({ "aaSorting": [[8, 'dsc'], [7, 'dsc'], [6, 'dsc']] });
[/code]

Any ideas?
thx,
chris

Replies

  • allanallan Posts: 63,516Questions: 1Answers: 10,472 Site admin
    Yeah - you are probably getting an error message from the "dsc". Replace that with "desc" and that will do the trick :-)

    Allan
  • chris9090chris9090 Posts: 4Questions: 0Answers: 0
    Schoolboy mistake, yet it did the sorting accurately :D
    THX!
This discussion has been closed.