RealGrid2 Guide
Column
Add and remove layouts

Add and delete layouts

You can add or delete columns to the layout with the addLayout and removeLayout functions.

//default layout
var layout = [
{
     name: "companyGroup",
     direction: "horizontal",
     items: [
     "KorName",
     "Gender"
     ],
     header: {
     text: "GroupColumn",
     }
},
"Age",
];
 
gridView.setColumnLayout(layout);
 
//Add layout
gridView.addLayout("Monetary");
 
//Layout deletion, group column layout deletion are the same
gridView.removeLayout("Monetary");
 
//Add group layout
gridView.addLayout({name: "GroupColumn2", items:["KorCountry"]});