updated data on datatable
updated data on datatable
manishjetly
Posts: 3Questions: 0Answers: 0
I am not sure if its possible or not!!!
I need to update the datatable only if any changes in existing data(row/columns) in table or new row is added. I dont want fetch the same data after every 15 second, it creates an over head to server.
Please let me know if its possibe.
Thanks in advance.
Manish
I need to update the datatable only if any changes in existing data(row/columns) in table or new row is added. I dont want fetch the same data after every 15 second, it creates an over head to server.
Please let me know if its possibe.
Thanks in advance.
Manish
This discussion has been closed.
Replies
write your own code: ajax call to server asking for last date-time of data change (which you'll have to store).
What is going to be doing the "diff" to say if there is new or updated data? Presumably something on the server-side which would already know what the client-side has, otherwise you'd be transferring everything to the client-side anyway. That sounds quite complicated to me :-)
There isn't a built in way to do this in DataTables, but as fbas says, it is quite possible to do this kind of thing with a bit of custom code. How exactly it is implemented will depend on what exactly you want to do.
Allan