The method appendcolumns appends a number of columns in existing grid.
n - represents the number of collumns to be appended.
var pggrid = new jsgrid(); pggrid.init({ id:"wrp", rows:5, columns:5, width:25, height:25, gutter:1, backgroundColor: "#d00000" }); pggrid.appendcolumns(10);
The script above appends 10 columns in the existing grid (5 columns). Now the number of columns is 15.