Highlight the grid line

grid

    var Grid = new new Ext.RSEGrid ({ // the data display panel 
        ID: 'O005_grid' , 
        title: 'List of drawings' , 
        loadMask: to true , 
        AutoScroll: to true , 
        width: prj.swidth * 0.46 , 
        height: prj.sheight * 0.6 , 
        border: . 1 , 
        Store: p_store, 
        SM: SM, 
        cm & lt: gridColumns, 
        buttonAlign: 'left' , 
        BBAR: Pagebar, 
        contextMenu: to true , 
        Split:true,
        region: 'north',
        listeners: {
            afteredit: function (e) {
                RenderColor(grid.getStore());
            },
            sortchange: function (ct, column, direction, eOpts) {
                RenderColor(grid.getStore());
            }
        }
    })

   p_store.on('load', function (s, records) {
        RenderColor(s);
    })

function

    function RenderColor(s) {
        var girdcount = 0;
        s.each(function (r) {
            if (r.data.DRAW_STAT2 == "9" || r.data.DRAW_STAT2 == 9) {
                for (var kk = 0; kk < columnCount; kk++) {
                    grid.getView().getCell(girdcount, kk).style.backgroundColor = '#FFFF00';
                }
            }
            if (r.data.DRAW_STAT2 == "7" || r.data.DRAW_STAT2 == 7) {
                for (var kk = 0; kk < columnCount; kk++) {
                    grid.getView().getCell(girdcount, kk).style.backgroundColor = '#00FF7F';
                }
            }
            girdcount++;
        })
    }

Guess you like

Origin www.cnblogs.com/chenyanbin/p/12069535.html