vertical scroll freeze while updating datatable
vertical scroll freeze while updating datatable
I have table which have 600 data, 2 columns are hidden for filtering and grouping(using row grouping plugin). Updating table using ajax every 15 sec.
Below are the codes to update the cell.
for (var i = 0; i < totalCnt; i++) {
var rowIndex = empTable.row('#' + data[i].empId);
empTable.cell(rowIndex, 1).data(data[i].name);
empTable.cell(rowIndex, 2).data(data[i].age);
empTable.cell(rowIndex, 3).data(data[i].salary);
empTable.cell(rowIndex, 4).data(data[i].address);
empTable.cell(rowIndex, 5).data(data[i].phone1);
empTable.cell(rowIndex, 6).data(data[i].phone2);
Util.updateMarker(data[i]);
}
After calling the above code table gets frozen and scroller stops for some moment. I am updating the user location in the same iteration.
Answers
We're happy to take a look, but as per the forum rules, please link to a test case - a test case that replicates the issue will ensure you'll get a quick and accurate response. Information on how to create a test case (if you aren't able to link to the page you are working on) is available here.
Cheers,
Colin
Hi Colin,
Thanks for your response. we are adding data to the table using our internal API, due to code privacy, can not share all details here.
Please help