Combining values from two retrieved columns to generate a third one
Combining values from two retrieved columns to generate a third one
uskerine
Posts: 33Questions: 15Answers: 0
Hi,
Is it possible for datatables to retrieve a set of columns and then generate a new column combining values of previously retrieved ones?
As this is best explained with an example, I would have a datatables with columns ADDRESS and TOWN and ZIP, and I would like to generate a single column combining values so its value would be: "ADDRESS\nTOWN ZIP". Maybe some "columnDefs:"?
Is that actually possible?
Thanks,
This discussion has been closed.
Answers
Already found the solution, it was actually properly documented in this example:
http://www.datatables.net/examples/advanced_init/column_render.html