Jsgrid Javascript Grid Framework

rowspan method

The method rowspan merges the cells between 2 cells in the same column into one grid cell. It is similar to the same property in tables.

Syntax

objgrid.rowspan(element1,element2)

Parameters

element - A two element array [colno,rowno], in which colno means column number and rowno means row number.

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

Grid View