Updating row.child() without sliding up?
Updating row.child() without sliding up?
shellcode
Posts: 2Questions: 1Answers: 0
I'm trying to figure how to update an open (shown) child row.
For updating my row.child() I'm using
row.child(format(rowData));
When doing so, the row child immediately slides up.
Is there a way to update a row.child() that is shown on screen right away (so its data is altered on screen)?
This discussion has been closed.
Answers
Include a .show() and it should force the child row to be shown instead of toggling it.
row.child(format(rowData)).show();
Thanks for the suggestion. Unfortunately, in my case, it's still toggled, even with .show()
My use case is: the row is already shown, but some attributes need to be updated without the row being toggled.
Try one of the following
https://datatables.net/reference/api/cell().invalidate()
https://datatables.net/reference/api/rows().invalidate()
You do not need to perform .draw() after, you can use .render(), but try both.