Jsgrid Javascript Grid Framework

setwidth method

The method setwidth resets the width of selected columns.

Syntax

objgrid.setwidth(array columns,number width)

Parameters

columns - An array of column numbers.

width - width of the columns to be set in px.

Example

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

Grid View