Jsgrid Javascript Grid Framework

setbackgroundcolor method

The method setwidth resets the width of selected columns.

Syntax

objgrid.setbackgroundcolor(string color)

Parameters

color - color value.

Example

var pggrid = new jsgrid(); 
        pggrid.init({ 
        id:"wrp", 
        rows:5, 
        columns:12, 
        width:25, 
        height:20, 
        gutter:1,
        backgroundColor: "#7fffd4" 
        });

var grp = pggrid.group([2,4,6,8,10]);

pggrid.setbackgroundcolor(grp, "#fff");

Grid View