Hi All,
I am trying to apply alternate colors to rows in a tomahawk dataTable, but I cannot get it to work.
Any help will be greatly appreciated.
Versions used :
tomahawk- 1.1.8
myfaces- 11-1.0.0
jsp Code:
<t:dataTable id="data" headerClass="cell-scrollable-header"
footerClass="standardTable_Header"
rowClasses="OddRow,EvenRow"
border="0" var="user" renderedIfEmpty="false"
value="#{MyBackingBean.resultList}"
preserveDataModel="false" rows="10">
Css :
tr.OddRow{
background-color: cyan;
width: 250px;
}
tr.EvenRow{
background-color: red;
width: 250px;
}
If I see the output background colors are not applied to rows.
But in view source I can see the odd rows are taking styleclass OddRow and even rows are taking EvenRow.
I do not know why the background color is not applying.
Your help is greatly expected.
Thanks,
Vennila