SMART datagrid v.1 > Classes > ColumnGroup
The list of all child columns including the columns which are not displayed now.
getter returns the columns as array. And, you can call setter to remove all existing columns and newly add the columns specified by parameter. visibleItems returns only the displayed columns as array.
var cols = group.columns();
if (cols.length <= 0) {
group.setColumns([{
name: 'col1',
fieldName: 'fld1'
},
...
]);
}