manipulating rows in a ServerSideProcessing DataTable
manipulating rows in a ServerSideProcessing DataTable
I have two tables on a page that are both using fnServerData to fetch their respective data. The tables represent an association with a parent object. For instance, the first table is AssociatedData, the second is EligibleData. I wish to move the rows back and forth.
Currently, on this action, I trigger the ajax call to Add/Remove the association and then trigger an fnDraw() on both of the tables. This is grossly inefficient, and I am trying to figure out how to use fnDeteleRow() and the fnAddData() (the name of the latter method escapes me at the moment). But again, since the data is retrieved using fnServerData, I am not sure how to handle the changes.
What is the best approach to this problem? Should build my own "cache" of data (like the Pipelining example) or is there an easier approach I am missing.
Thanks
Currently, on this action, I trigger the ajax call to Add/Remove the association and then trigger an fnDraw() on both of the tables. This is grossly inefficient, and I am trying to figure out how to use fnDeteleRow() and the fnAddData() (the name of the latter method escapes me at the moment). But again, since the data is retrieved using fnServerData, I am not sure how to handle the changes.
What is the best approach to this problem? Should build my own "cache" of data (like the Pipelining example) or is there an easier approach I am missing.
Thanks
This discussion has been closed.