Ext.grid.panel 改变某一行的字体颜色

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;
        });
    }

猜你喜欢

转载自www.cnblogs.com/daihu/p/10006022.html