Quantcast
Channel: DataTables 1.10 — DataTables forums
Viewing all articles
Browse latest Browse all 2364

Dependent columndef

$
0
0

columndef when value of other column is 'x'

I have a column called 'Type' with 3 options EACH, PCT,GRAM
I want to set a column definition for the 'Price' column If 'Type' = PCT

{ targets: ['price'], render: function (data, type, row, meta) {var row['type'] == ['PCT'];return row['ct'] * row['ppct'];} },

The above code doesn't work, but any pointers would be fab.


Viewing all articles
Browse latest Browse all 2364

Trending Articles