How to format rows or cells in Ajax sourced data
How to format rows or cells in Ajax sourced data
I am populating a table using Ajax sourced data.
Is there any way to format cells or rows based on the data returned?
e.g. I have a column called "Sent" and it is Yes or No - How can I add a class (green) to the Yes cell and (red) to the No cell?
This discussion has been closed.
Answers
You could use
columns.renderto conditionally add the class, orcreatedRowcould be used too.Colin