There doesn't appear to be a rowInit event.
Id like an easy way to set the class/style of a row without having to re-iterate the grid rows after they are rendered, or without injecting data into the data array before rendering the grid.
Does something like this exist?
rowInit: function(ui){
var $tr = ui.$tr, rowData = ui.rowData;
if(rowData.days_past_due >= rowData.terms){
$tr.addClass('past-due');
}
}
Or, something like this?
rowModel: {
init: function(ui){
}
cls: function(rowData,rowIndx){
return rowData.my_index>0?'my-class':null;
}
style: function(rowData,rowIndx){
return rowData.my_index>0?'background-color:red':null;
}
}