Default Sort / IE7 Slowness

Default Sort / IE7 Slowness

vol7ronvol7ron Posts: 43Questions: 11Answers: 0
edited February 2013 in General
[code]
var oSettings = {'aoColumns' : [{'bSortable':false},null,null,null,null],
'bPaginate' : false,
'bProcessing' : true,
'bSortClasses' : false,
'sScrollY' : '400px',
'bScrollCollapse' : true,
'bInfo' : false
};

$('#sometable').dataTable(oSettings);
[/code]

Besides accepting the fact that IE7-JS is slow, I'm trying to see where the hang is. After profiling, I've noticed that it is spending a lot of time calling 'numeric-asc'. So why would this occur if there is no sorting going on?

Replies

  • allanallan Posts: 63,522Questions: 1Answers: 10,473 Site admin
    The default sort is occurring, regardless of your bSortable for the first column. Use aaSorting as an empty array if you want to disable initial sorting.

    Allan
  • vol7ronvol7ron Posts: 43Questions: 11Answers: 0
    I haven't had time to check this in IE. Perhaps I will this week. I switched from loading an html table and converting it to a dataTable, to loading the data it via ajax + Scroller.

    I don't want to rely on that method, since it is less accessible if JS is turned off, so if I can go back to a previous commit and test, perhaps turning off the default sort would be good enough.
This discussion has been closed.