grid.getStore().addListener('load', handleGridLoadEvent); function handleGridLoadEvent(store, records) { var gridCount = 0; store.each(function (r) { if (r.get('disorderlyStatusStr') == "回溯点亮") { var length = disorderly.getView().getRow(gridCount).cells.length; for (var i = 0; i < length; i++) { disorderly.getView().getRow(gridCount).cells[i].style.color = 'red'; } } gridCount = gridCount + 1; }); }