Invalidation of data provides an alternative to using methods are preferred over the invalidation methods, as they use less code, but where the invalidation methods really shine is when the data source for the table are external objects which can be updated using that objects own methods and then simply tell Data Tables that the data has changed by calling the invalidate method. It can be used to get existing data, or set new data to be used for the row.The problem you're running into is that you're trying to replace an entire row object. Instead you have to update the values in the columns of a row object. To update the column of a particular row you can access it by name or index.I think this is enough code to make sense of what I'm doing, but if more is needed just let me know and I can post it up as well.in the inner loop after a match is found - but reverting the order of the 2 loops) - but leaving the complexity order to O(n^2). As of now, the application runs perfectly and does exactly what I need it to, but the problem comes in when a large data set is reviewed.If I am pulling records for one day or even maybe a week, it runs at a decent pace, but once you get a month of data or more, it takes a fairly long amount of time. Is there possibly a better way that I can code this?I can't imagine this is the optimal coding for data table update operations, but it might be.
If you were to modify the contents of a cell (for DOM data source tables) or the array / object values (for Ajax / JS source tables) Data Tables wouldn't know that this has happened.This method can be used to tell Data Tables to re-read the information from the data source for the row (be it from the DOM or objects / arrays - whatever the original data source was).Updating a cell or a whole without reloading the page of the table itself using AJAX is not that hard.However, in lack of proper documentation or tutorials or examples users find difficult to implement this.
Invalidate the data held in Data Tables for the selected row.Data Tables holds cached information about the contents of each cell in the table to increase performance of table operations such as ordering and searching.