Quantcast
Channel: Recent Discussions — DataTables forums
Viewing all articles
Browse latest Browse all 83002

Optimize updating multiple rows by rowId

$
0
0

I wrote a code to update data in multiple rows using the rowId as selector. Is there a way to optimize this code for speed?

changedData.forEach(i => {
    table.row("#" + i).data(i)
})
table.draw()

I'm thinking I should not redraw the whole table but only the changed rows. However, I'm not sure how to do that in the most efficient way using the datatables api.


Viewing all articles
Browse latest Browse all 83002

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>