Get row id in columns.render?

Get row id in columns.render?

sergedasergeda Posts: 42Questions: 16Answers: 0

How is it possible to get row id in columns.render function? I see all the data except id. Also I see row index in this method but how can I get row id with it?

This question has an accepted answers - jump to answer

Answers

  • allanallan Posts: 63,498Questions: 1Answers: 10,471 Site admin
    Answer ✓

    The latest parameter in the function gives access to the data for the whole row. If the id is present, then it will be in there.

    Allan

  • sergedasergeda Posts: 42Questions: 16Answers: 0

    Thank you, I've managed to get it from meta.settings.aoData[0].nTr but maybe in this method should be some easier path to current row?

This discussion has been closed.