How to get cells from row in createdRow callback

How to get cells from row in createdRow callback

demegodemego Posts: 4Questions: 2Answers: 0

Hi everyone,

Is it possible to get cells from a row in createdRow callback function? There are 3 parameters it receives : row, data, index. What I want to do is get cells from a row ex row.cells(function(cell){ if(cell.data === row.data)}); Check cell data with another row property and depending on that condition do something. I've looked over the API row() and rows() but it seems like there is nothing in the documentation about getting cells from a row. I've probably overlooked something.

Thanks for any help in advance

Replies

  • allanallan Posts: 62,377Questions: 1Answers: 10,234 Site admin

    Yes, $('td', row) since row is the tr element and you can use that for context in the jQuery selector.

    Allan

This discussion has been closed.