createdRow callback for DataTables with fixedColumns

createdRow callback for DataTables with fixedColumns

zajuzaju Posts: 1Questions: 1Answers: 0

I'm using createdRow callback to add id to <tr> element in order to identify row by entity id. I need it to use with context menu to recognise clicked row, but this callback doesn't work for fixed columns. Is there any way to add id to <tr> in fixedColumns ?

        createdRow: (row, data, index) => {
            $(row).attr('id', data.alertid);
        },

Answers

  • colincolin Posts: 15,240Questions: 1Answers: 2,599

    Hi @zaju ,

    We're happy to take a look, but as per the forum rules, please link to a test case - a test case that replicates the issue will ensure you'll get a quick and accurate response. Information on how to create a test case (if you aren't able to link to the page you are working on) is available here.

    Cheers,

    Colin

This discussion has been closed.