conditional styling onRender event

On my onRender() I want to hightlight particular record based on some condition. In brief, what I am doing is.

In my form data in table view is populated dynamically by providing dataprovider to each element on the fly. Based on value in my table view I want to hightlight particular entire record in table view
Created onRender event and applied conditions. Problem is, it hightlights entire column in table instead of entire record for condition thats matches.

var rec=event.getRecord()
if(rec.start_dts==null && rec.types==null )
{
       event.getRenderable().bgcolor='#80BFFF'
}

Any suggestions how to highlight entire record in table view based on condition.