How to get cells from row in createdRow callback
How to get cells from row in createdRow callback
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
Yes,
$('td', row)
sincerow
is thetr
element and you can use that for context in the jQuery selector.Allan