fnRowCallback: $(nRow).closest('table').length is zero?
fnRowCallback: $(nRow).closest('table').length is zero?
lancehilliard
Posts: 4Questions: 0Answers: 0
http://jsfiddle.net/weQNd/3/
Why does the console show zero tables?
In my real code, I'm trying from fnRowCallback to modify the header row of the table, but I'm having a hard time getting there since I can't find the table node from the row passed into the callback.
http://debug.datatables.net/usituw
Why does the console show zero tables?
In my real code, I'm trying from fnRowCallback to modify the header row of the table, but I'm having a hard time getting there since I can't find the table node from the row passed into the callback.
http://debug.datatables.net/usituw
This discussion has been closed.
Replies
If you want to modify the header, you probably want to use fnDrawCallback or fnHeaderCallback rather than the row callback function, so that it only runs once per draw, rather than once per row.
Allan