Alternating row background for UniGrid

Stefan Lorenz asked on June 6, 2014 04:37

Hi,

I'm looking for a way to apply an alternating row color to the UniGrid. Does anyone have a solution for this (other than manipulating the DOM from the code behind)? Seems like there isn't any CSSClass property for this, too bad.

Best regards, Stefan

Recent Answers


Stefan Lorenz answered on June 6, 2014 05:00 (last edited on June 6, 2014 05:00)

Oh my, never knew before that CSS can handle this natively:

.cms-bootstrap .table tr:nth-child(even){
  background-color:#dedede;
}

Cheers Stefan

2 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.