SMART datagrid v1.4 > Classes

Back  Forward

DataLudi.ColumnGroup  class

컬럼그룹은 하나 이상의 컬럼이나 하위 컬럼그룹들을 수평이나 수직 방향으로 자신의 영역 내에 배치한다. 

하위 컬럼들의 배치 방향은 layout 속성으로 지정한다. 또, GridBase.columns 호출로 컬럼들을 생성할 때 "type""group"으로 지정한다. 

Base Classes
GridColumn > DLBase
Constructor
function ColumnGroup (config: Object);
Properties
childFootersVisible
childGroupFootersVisible
childHeadersVisible
childSummariesVisible
columns
count
first
footerDelegate
groupFooterDelegate
headerDelegate
horizontal
isHorizontal
isVertical
last
layout
sortBindColumnName
summaryDelegate
vertical
visibleCount
visibleItems
Inherited Properties
GridColumn.checked
GridColumn.dataRoot
GridColumn.displayIndex
GridColumn.displayText
GridColumn.distance
GridColumn.fillHeight
GridColumn.fixed
GridColumn.footer
GridColumn.grid
GridColumn.group
GridColumn.groupFooter
GridColumn.header
GridColumn.height
GridColumn.index
GridColumn.isDataRoot
GridColumn.isFixed
GridColumn.isRoot
GridColumn.movable
GridColumn.name
GridColumn.parent
GridColumn.resizable
GridColumn.root
GridColumn.styleName
GridColumn.styles
GridColumn.tag
GridColumn.visible
GridColumn.width
Methods
add
clear
collectColumnNames
collectColumns
collectColumnsByField
collectColumnsByTag
collectGroupNames
collectGroups
columnAtPoint
columnByField
columnByFieldName
columnByName
columnByTag
getDataColumns
getItem
getLeafColumns
getVisibleItem
isAncestorOf
left
lower
next
prev
remove
removeAt
right
setChildIndex
setChildrenProperty
setVisibleIndex
upper
valueColumnByName
Inherited Methods
DLBase.assign
GridColumn.ctor
DLBase.getProperties
DLBase.getProperty
DLBase.setProperties
DLBase.setProperty
DLBase.toggle

 

Code -1
    grid.setColumns([{
        type: "group",
        layout: "vertical",
        columns: [{
            name: "colName",
            fieldName: 'name"
        }, {
            name: "colAddr",
            fieldName: 'address"
        },
        ...
        ]
    }, 
    ...
    ]);
See Also
GridBase.columns
ValueColumn
Examples
Column Grouping
Column Moving