In my kendo grid I can change the color of the cell but not the row with the following approach.
I get a green color for all those events whose value is rainy, but the red color only applies to the cell but not the row. How can I get that?
$("#grid").kendoGrid({
dataSource: myDB,
height: 550,
{
field: "User",
title: "User",
width: "50px",
},
{
field: "WindSpeed",
title: "Wind Speed",
width: "40px"
},
{
field: "EventName",
title: "Event Type",
width: "50px",
attributes: {
" class": "# if(data.EventName === 'rainy') { # green # } else { # white # }, #"
},
}
}