Performance Issue Select Extension
Performance Issue Select Extension
rf1234
Posts: 3,036Questions: 88Answers: 423
After upgrading from Select-1.2.0 to Select-1.2.2 I am having a performance issue when selecting a table row. It used to be selected immediately with no delay but now it can take seconds before the row will be selected.
Any idea what could cause this? Any settings that I could use for optimization?
This is how I use it:
//Data tables default settings
$.extend( true, $.fn.dataTable.defaults, {
fixedHeader: {
header: true,
headerOffset: $('.navbar-header').outerHeight()
},
paging: true,
colReorder: true,
responsive: true,
select: true
} );
var table = $('#example').DataTable( {
.....
select: {
style: 'os',
selector: 'td:not(:last-child, :nth-last-child(2))' // no row selection on last two columns
},
....
This question has an accepted answers - jump to answer
This discussion has been closed.
Answers
I'm afraid not - this is the first I've heard of this issue, and it appears to work here.
I'd need a link to a test case showing the issue please.
Also, worth using DataTables 1.10.15 if you aren't already as it has API performance improvements.
Allan
Just tested with the previous version of the Select extension; it was the same. Something else must have caused this. Will try to figure it out.