0
greatsamps created
Hi,
I need to know how i can combine two data properties into a single column.
For example, the following JSON:
{"CurrencyName":"USD", "Amount":12.95}
I would like to render a single column in my table that has:
CurrencyName Amount
I presume that I need to use the render function, but have no idea how to reference the two different data elements.
Any ideas?
1 Answer(s)
-
0
Hi @Greatsamps, I think you are using jQuery version and datatables. If so, the 3. parameter of render function should give you the whole row data.
render(data, type, row, meta){ // row.xxxx }