SMART datagrid v.1 > Classes > GridBase
Top Column list set in the grid. When set it, existing columns will all be removed. In general, you should set columns first after creating the grid.
$(function () {
grid.setColumns([
{
name: 'col1',
fieldName: 'fld1'
}, {
name: 'col2',
fieldName: 'fld2',
width: 200
}, {
name: 'col2',
orientation: 'vertical',
width: 200,
columns: [
{
name: 'col21',
fieldIndex: 0
}, {
name: 'col22',
fieldIndex: 1
}
]
}
]);
});