Creating extra columns
Creating extra columns
I am curently fetching my data using Ajax, but how can I create additional columns which are NOT in the Ajax data? Say I want to create a column which does a sum of three of the other columns and displays the value. I do not want to increase my data size from the server and it makes sense to do this on the front end.
Thanks
Chris
Thanks
Chris
This discussion has been closed.
Replies
------------------------
not sure if you can do this using the traditional aaData (arrays of arrays).
But if you use the object form of aaData (arrays of objects) and use mDataProp (which allows columns to have a null mDataProp, hence not draw from the aaData) you can have extra columns that you then compute (using fnRender or some other callback).
converting from aaData array form to object form won't really increase your storage requirement, but might be a bit of work.