fnCreatedRow
fnCreatedRow

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:
[code]
"fnCreatedRow" : function( nRow, aData, iDataIndex) {
$(nRow).attr('class', 'newClass');
},
[/code]
Result:
Expected:
This discussion has been closed.
Replies
Allan