I have give rowStyle
based on condition. This datatable also has selection (check-box) option.
rowStyleClass="#{condt ? myStyle : null}"
I would like to retain the custom style that is applied on the row, even when it is selected (i.e., check-box is checked). By default, when the row is selected it is highlighted in yellow irrespective of the style applied.
CSS:
.ui-datatable .ui-state-highlight {
background-image: none;
background-color: yellow !important;
}
.myStyle {
background-image: none;
background-color: red !important;
}
Can I retain the rowStyle
already applied even when check-box is selected.