Hi
We are trying to use datatable and we are experiencing issues.
If we push rows in to the table individually then we get slow running script messages
If we push rows in to the table as an array then we see potential memory issues with IE
We need the table to refresh every 60 seconds and when processing rows manually, we have tied
removing and adding, and just replacing the data of existing rows.
The data is 370k, has 23 rows and there are 550 rows.
The data is pushed to the client through an ajax call but not through the datatable's ajax/server feature.
We are using version 1.10.11
Any help would be appreciated.
Thanks.
//example of code that pushes in the array.
var tableType = function(data)
{
self.prop1 = data.prop1;
self.prop2 = data.prop2;
self.prop3 = data.prop3;
self.prop4 = data.prop4;
self.prop5 = data.prop5;
self.prop6 = data.prop6;
self.prop7 = data.prop7;
self.prop8 = data.prop8;
self.prop9 = data.prop9;
self.prop10 = data.prop10;
self.prop11 = data.prop11;
self.prop12 = data.prop12;
self.prop13 = data.prop13;
self.prop14 = data.prop14;
self.prop15 = data.prop15;
self.prop16 = data.prop16;
self.prop17 = data.prop17;
self.prop18 = data.prop18;
self.prop19 = data.prop19;
self.prop20 = data.prop20;
self.prop21 = data.prop21;
self.prop22 = data.prop22;
self.prop23 = data.prop23;
self.prop24 = data.prop24;
self.prop25 = data.prop25;
}
var updateBoard = function (data) {
var tableTypes = [];
for (var i = 0; i < data.length; i++) {
var myType = new tableType(data[i]);
tableTypes.push(myType);
}
dt.clear();
dt.rows.add(tableTypes);
dt.draw();
tableTypes = null;
}