1. Please add render callback to data column.
render: function(ui){
if(ui.rowData[dataIndx of checkbox column] =='YES'){
return {
style: {background: "#ff0000"}
}
}
},
and use check event to refresh the data column when checkbox is checked/unchecked.
check: function(evt, ui){
if(ui.dataIndx == 'dataIndx of checkbox column')
this.refreshColumn({dataIndx: 'dataIndx of data column'})
},
2. Please make adding new grouped columns a 2 step process. First add parent "New Column" column, then add its children columns with Columns.add() API separately.