Color rows and CSS

Color rows and CSS

revertrevert Posts: 1Questions: 0Answers: 0
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

  • allanallan Posts: 63,602Questions: 1Answers: 10,486 Site admin
    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.