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.