How can I continuously update my DataTable with new data streaming in?
How can I continuously update my DataTable with new data streaming in?
I am dynamically updating my DataTable with data coming in over a websocket from my server. I would like it to only display the first 20 or so rows of data and after 20 rows is reached to start deleting the first row at the same rate it adds a new row so that the table is continuously updating with the latest 20 data points streaming in. I need to use DataTable and not dataTable so fnDeleteRow will not work. Is there any other builtin in function I can use to achieve this affect, either to continually delete the first row or another function altogether that will allow for the same affect?
Answers
You can use the Conversion Guide to map the old API's to the current.
fnDeleteRow
maps torow().remove()
androws().remove()
.Kevin