SMART datagrid v.1 > Classes

Back  Forward

abstract DataLudi.GridColumn  class

The model which manages common properties about the cells being displayed in the same location in all rows of Grid

The column can be divided largely by the models inheriting ValueColumn and ColumnGroup objects. The cells of ValueColumn display the value of DataSet being connected to grid through DataField, and transfer the value entered by user to data set again. And, they can also display the value derived from the values of data field or fixed text. The column group can horizontally or vertically arrange child columns to implement various types of cell layout. 

Since grid column object will be transferred to JSON setting objects when call GridBase.setColumns to set grid column model, and it will be automatically created within grid, you do not need to directly create column object. 

Base Classes
DLBase
Inherited Classes
ColumnGroup, ValueColumn
Constructor
function GridColumn (config: Object);
Properties
checked
dataRoot
displayIndex
displayText
distance
fillHeight
fixed
footer
grid
group
groupFooter
header
height
index
isDataRoot
isFixed
isRoot
movable
name
parent
resizable
root
styleName
styles
tag
visible
width
Inherited Methods
DLBase.assign
DLBase.getProperties
DLBase.getProperty
DLBase.setProperties
DLBase.setProperty
DLBase.toggle

 

Code -1
    grid.setColumns([{
        name: 'colName',
        fieldName: 'name'
    }, {
        type: 'group',
        layout: 'vertical',
        columns: [
        ]
    },
    ...
    ]);
See Also
GridBase
GridRow
DataSet
DataField
Examples
HelloGrid
Column Grouping