Empty aaSorting setting causes error.
Empty aaSorting setting causes error.
Hi Allan.
I tried to disable default sorting behavior, and add this peace of code to configuration - aaSorting: []. I got an error, "aaSort[aaSort.length - 1] is undefined" in _fnSort() function. Is it possible to disable default sorting at all?
I tried to disable default sorting behavior, and add this peace of code to configuration - aaSorting: []. I got an error, "aaSort[aaSort.length - 1] is undefined" in _fnSort() function. Is it possible to disable default sorting at all?
This discussion has been closed.
Replies
Yes indeed this should be possible and I made a small error in my changes when introducing aaSortingFixed which breaks this. I'll release a new beta shortly with a fix.
Allan
This behaviour would definitely be wrong. However, my feature enablement example (in both 1.4 and 1.5 beta) correctly don't apply these classes:
http://datatables.net/1.5-beta/examples/basic_init/filter_only.html
http://datatables.net/examples/example_filter_only.html
Do you have a link to an example of the problem?
Thanks,
Allan
Thanks for clarifying your setup. Indeed there was a bug when using server-side processing and applying the sorting classes. I've fixed this now and just re-released beta 6 with that fix.
Thanks
Allan