Base solution for your next web application
Ends in:
01 DAYS
01 HRS
01 MIN
01 SEC
Open Closed

Multiple Data Columns In Single Column #5189


User avatar
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)
  • User Avatar
    0
    ismcagdas created
    Support Team

    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
    }