I have a table with a checkbox column. I have a toggle all checkboxes at the top to check/uncheck all at once. It's fast in 1.9 but slow in 1.10 so I'm guessing I'm doing it in a less than ideal way... any feedback would be greatly appreciated:
1.9 method:
var rows = reportingTable.$('tr', {filter: 'applied'});
rows.each(function(index) {
if (target.is(':checked')) {
reportingTable.fnUpdate(true,this,0,false,false);
} else {
reportingTable.fnUpdate(false,this,0,false,false);
}
});
1.10 method:
var rows = reportingTable.rows({search: "applied"}).indexes().each(function(idx) {
var d = reportingTable.row( idx ).data();
d.checked = (target.is(":checked"));
reportingTable.row( idx ).data( d );
});
reportingTable.draw();