Customizing_the_look_and_feel_of_a_row_or_a_cell[Permalink]How to customize the look and feel of elements in the list viewCreate a method in a delegate classIn the delegate class, the method css__tableRowClass is implemented, like in this example :
Here the function tests a condition : is there a value in the field fermeture ? Add the class in a CSS stylesheetNow the class is created in a CSS stylesheet.
This is a class for each cell, the <td> tag. The !important attribute is added to be sure that this information has precedence over all the others. It is better to add this class in a custom CSS stylesheet. RemarksBeware that some versions of IE don't respect the background-color property on the <tr> tag, so it is probably better to write:
i.e. to apply the background color to the individual cells. blog comments powered by Disqus |