fnUpdate without replacing the whole
fnUpdate without replacing the whole
doherty
Posts: 1Questions: 0Answers: 0
It looks to me like when I call fnUpdate to update the data for a single cell, it actually repaints the whole row. That's a problem for me, because other cells in that row might be in the middle of an animation, or they might be blocked (with the blockUI jQuery plugin). When the row gets updated with fnUpdate, then try to unblock another element in the row, it has disappeared from the DOM (replaced by an identical element, but one which isn't blocked with the blockUI plugin, for example).
I thought I could get fnUpdate to only replace a single td in the DOM, but it appears that's not the case, even when updating only a single column. If I'm wrong, that'd be the ideal solution.
Another thought I had was to clone the other td nodes I care about before calling fnUpdate, and then replace them back where they were after DataTables re-paints the whole row. I imagine that would preserve the state of any animations that are in-progress, and the blocked state of the elements. Is that crazy?
I'd love to have better suggestions if you have them.
Thanks!
I thought I could get fnUpdate to only replace a single td in the DOM, but it appears that's not the case, even when updating only a single column. If I'm wrong, that'd be the ideal solution.
Another thought I had was to clone the other td nodes I care about before calling fnUpdate, and then replace them back where they were after DataTables re-paints the whole row. I imagine that would preserve the state of any animations that are in-progress, and the blocked state of the elements. Is that crazy?
I'd love to have better suggestions if you have them.
Thanks!
This discussion has been closed.