Quantcast
Channel: Free community support — DataTables forums
Viewing all articles
Browse latest Browse all 35377

Update row cache values?

$
0
0

I am using Datatables 1.10, with serverSide true.

I have a situation where the user can click an icon in a row and change a value. When they are finished changing it, i use the DataTable().row().data() to save the new value.

However, the original value is cached, and if I make a subsequent call to DataTable().row().data() i receive the cached value.

The only way I have found in the documentation is to call draw() to refresh the cache. I would like to avoid this, because I want to do a simple animation (highlight) and don't want the table to re-fetch from the server and redraw.

is there a way to update the cached value without calling draw? invalidate will flag it as dirty, but it still won't update until after draw() is called.

If not, can we add a feature request for this? maybe a refreshCache() method that pushes the current objects into the cache spot?

Thanks


Viewing all articles
Browse latest Browse all 35377