SMART datagrid v1.4 > Classes

Back  Forward

DataLudi.DataColumn  class

DataSetDataField에 연결되는 컬럼. 

fieldName이나 fieldIndex로 연결된 필드의 값들을 컬럼셀들에 표시한다. 또, 컬럼셀에서 편집기로 입력하고 수정된 값이 데이터셋으로 다시 전달된다. 

아래 예제 코드에서와 같이 설정 모델로 컬럼이 생성될 때 "type"은 "data"이다. 

Base Classes
ValueColumn > GridColumn > DLBase
Constructor
function DataColumn (config: Object);
Properties
autoFilter
button
buttonDisplayCallback
buttonVisibility
customButtons
dataFieldName
dataIndex
defaultCallback
defaultExpression
defaultValue
dynamicStyles
editable
editableCallback
editCallback
editor
editorButtonVisibility
editorCallback
editorOptions
editTextCallback
emptyValue
erasable
error
errorLevel
excelFormat
fieldIndex
fieldName
filterable
filtered
filters
groupable
groupLevel
hasFilters
imageList
isFiltered
isMergeGrouped
labelField
labelFieldIndex
lookupDisplay
lookupItemsCallback
lookupKeyFields
lookupLabels
lookupSourceId
lookupValues
maximum
maxLength
mergeGrouped
minimum
nanText
popupMenu
popupMenuCallback
readOnly
readOnlyCallback
required
requiredLevel
requiredMessage
sortable
sortDirection
sortOrder
textInputCase
validations
Inherited Properties
ValueColumn.blankWhenCopy
GridColumn.checked
ValueColumn.copyCallback
ValueColumn.cursor
GridColumn.dataRoot
ValueColumn.displayCallback
GridColumn.displayIndex
GridColumn.displayText
GridColumn.distance
GridColumn.fillHeight
GridColumn.fixed
GridColumn.footer
GridColumn.grid
GridColumn.group
GridColumn.groupFooter
GridColumn.header
GridColumn.height
ValueColumn.ignoreDefaultDynamicStyles
ValueColumn.ignoreRowDynamicStyles
GridColumn.index
GridColumn.isDataRoot
GridColumn.isFixed
GridColumn.isRoot
ValueColumn.mergeCallback
ValueColumn.mergeExpression
ValueColumn.mergeValueCallback
ValueColumn.mergeValueExpression
GridColumn.movable
GridColumn.name
GridColumn.parent
ValueColumn.pasteCallback
ValueColumn.renderer
GridColumn.resizable
GridColumn.root
ValueColumn.styleCallback
GridColumn.styleName
GridColumn.styles
ValueColumn.summaryCallback
GridColumn.tag
ValueColumn.tooltipCallback
GridColumn.visible
GridColumn.width
Methods
activateAllFilters
activateFilters
addFilters
clearFilters
getActiveFilters
getDataField
getField
getFilter
removeFilters
toggleAllFilters
toggleFilters
Inherited Methods
DLBase.assign
ValueColumn.ctor
GridColumn.ctor
DLBase.getProperties
DLBase.getProperty
DLBase.setProperties
DLBase.setProperty
DLBase.toggle

 

Code -1
    var columns = [{
        name: "colAddr",
        type: "data",
        fieldName: "fldAddr",
        ...
    }, 
    ...
    ];
    grid.setColumns(columns);
See Also
DataSet
DataField
SeriesColumn
Examples
Hello Grid