How to change the Grid row color to be color 1 in even number rows, and color2 in odd number rows.
Thanks!
3 Answers, 1 is accepted
0
Nikolay
Telerik team
answered on 16 Sep 2019, 02:00 PM
Hello YN,
You could achieve different colors for the alternating and non-alternating rows by using custom CSS rules. By default, the Grid rows have different classes for the alternate rows:
<style>
.k-grid-content tr {
background-color: orange;
}
.k-grid-content .k-alt {
background-color: white; // specify the alternate background-color
Hope this helps and please contact us back, if you have any further questions.
Regards,
Nikolay
Progress Telerik
Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers.Learn More.
In case you are having a Kendo UI for Angular Data Grid, I recommend submitting a new thread choosing the correct product so the relevant team handles the inquiry. The Kendo UI for Angular is another product that has a separate dedicated team working on it.