Update prices of a column through a field with percentage
Update prices of a column through a field with percentage

Hello, I have a table that uploads the content through ajax post.
I have 4 columns, one of them is the price of the products.
I would like to be able to have an additional field that puts a value in percent, for example 5%. And it is automatically applied to the price column, adding to that column the price plus 5%.
Any suggestion?
Thank you
This discussion has been closed.
Answers
Build a column "render" function which makes the calculation and returns the result.
https://datatables.net/examples/advanced_init/column_render