Jsgrid Javascript Grid Framework

getrows method

The method getrows returns an array of grid cells of selected rows. The arguments are the index numbers of the selected rows.


var pggrid = new jsgrid(); 
        id: "wrp", 
        rows: 5, 
        columns: 12, 
        width: 25, 
        height: 20, 
        gutter: 1,
        backgroundColor: "#7fffd4" 
        var rows = pggrid.getrows(0, 2, 4); 
        //set backgroundColor of selected rows
        pggrid.setbackgroundcolor(rows, "#bbff00");

Grid View