Sorting; Invalidate internal cache and get fresh values from dom
Sorting; Invalidate internal cache and get fresh values from dom
I have a table whose values change, but when sorting, the table sorts on the old values. I'm aware of the fnUpdate function, but it's not what i need. The new values have been updated in the table cell already, outside of the datatables framework, (by using knockou and databindings). So what i need is a way to invalidate a single cell or row, then update the cache with fresh values from the dom.
(The data is html, stuff like "100miles", which is sorted by a custom sort function which strips the text in small and sorts only on the data in span)
Can anyone point me in the direction on how to do this?
(The data is html, stuff like "100miles", which is sorted by a custom sort function which strips the text in small and sorts only on the data in span)
Can anyone point me in the direction on how to do this?
This discussion has been closed.
Replies
Using fnDataUpdate from http://datatables.net/plug-ins/api together wth fnDraw works like a charm!