fnCreatedRow
fnCreatedRow
![sunsetknight](https://secure.gravatar.com/avatar/12387fd18352fdaf0fc9b322abdf0f68/?default=https%3A%2F%2Fvanillicon.com%2F12387fd18352fdaf0fc9b322abdf0f68_200.png&rating=g&size=120)
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