I've used some custom formatting to change the color of a whole row. This works great, except the summary rows on my grid are the same color as the row prior. I can't work out how to prevent the summary row from picking up the same color. Here's the code I used:
Any help would be appreciated
Code:
var dCol = rec.get('D_COLOR') if (dCol.startsWith('#')) { setTimeout(function() { var gridView = grid.getView(), rowNode = gridView.getNodeByRecord(rec); if (!Valence.isEmpty(rowNode)) { var row = Ext.get(rowNode); if (!Valence.isEmpty(row)) { if (summary.isRow === false) { row.setStyle('background-color', rec.get('D_COLOR')); } else { row.setStyle('background-color', '#efefef'); } } } }, 150); } return v;
Comment