fnCreatedRow

fnCreatedRow

sunsetknightsunsetknight Posts: 2Questions: 0Answers: 0
edited January 2013 in General
I'm trying to change the class on all of the TR rows, I'm attempt to do this with the fnCreatedRow(http://www.datatables.net/ref#fnCreatedRow). I'm able to successfuly change it but it still is adding the default "odd" and "even" classes to the end. How can I stop this from happening? I only want my custom classes.

[code]
"fnCreatedRow" : function( nRow, aData, iDataIndex) {
$(nRow).attr('class', 'newClass');
},
[/code]

Result:


Expected:

Replies

This discussion has been closed.