≡
×
Plus
Manual
Examples
Reference
Download
Blog
Community
Support
Color rows and CSS
Color rows and CSS
revert
Posts: 1
Questions: 0
Answers: 0
September 2009
edited September 2009
in
General
Hello,
Is it possible to assign row classes (colours) when loading data from JSON (AJAX example)?
Just the Table examples with Grade.
Cheers,
Revert.
Replies
allan
Posts: 65,813
Questions: 1
Answers: 10,949
Site admin
September 2009
Hi revert,
The best way of doing this with Ajax based data is to use fnInitComplete() and have it run through all of the nodes which are in the table (oSettings.aoData[i].nTr or fnGetNodes()) and add the classes required to each row.
Regards,
Allan
This discussion has been closed.
Replies
The best way of doing this with Ajax based data is to use fnInitComplete() and have it run through all of the nodes which are in the table (oSettings.aoData[i].nTr or fnGetNodes()) and add the classes required to each row.
Regards,
Allan