Table column calculation

Table column calculation

ergunergun Posts: 12Questions: 3Answers: 0

Hello everyone, I have not found on the site how to add a Z column in my table that displays the following result column value x * y column .
example: column x = 10, y = 20, so column Z = 200
Someone would have a solution?
Thank you .

Replies

  • ergunergun Posts: 12Questions: 3Answers: 0

    I solved my problem .

    { data: null, render: function ( data, type, row ) {
    var total = (data.ingesta.qtte*data.ali.cal_ali)
    return total;
    } },

  • allanallan Posts: 63,692Questions: 1Answers: 10,500 Site admin

    Yes - you would use columns.render.

    Allan

This discussion has been closed.