SMART datagrid v1.4 > Classes

Back  Forward

DataLudi.TreeView  classno-lite

트리뷰 클래스. 

트리 데이터셋을 계층적으로 표시하고, 사용자가 행을 추가/수정/편집할 수 있다. SMART datagrid 트리뷰는 각 행이 Tree 구조로 구성되는 점을 제외하면, 그리드뷰와 동일한 컬럼구조를 갖는다. 즉, 계층적 관계를 제거하면 기존의 그리드뷰와 동일하다. 

이 클래스 객체를 직접 생성할 일은 없다. TreeContainer 초기화 시에 내부적으로 생성되고, TreeComponent.treeView로 접근할 수 있다. 

Base Classes
GridBase
Constructor
function TreeView (dom: Boolean, container: String, readMode: Boolean);
Properties
dataRoot
rootRow
treeOptions
Inherited Properties
GridBase.autoFill
GridBase.body
GridBase.checkBar
GridBase.columnCount
GridBase.columnLayout
GridBase.columnLayouts
GridBase.columns
GridBase.dataCellRenderers
GridBase.dataRowCount
GridBase.dataSource
GridBase.defaultStyles
GridBase.descendantDataCount
GridBase.descendantRowCount
GridBase.displayOptions
GridBase.displayRowCount
GridBase.editOptions
GridBase.filtered
GridBase.focusedColumn
GridBase.focusedDataIndex
GridBase.focusedDataRow
GridBase.focusedIndex
GridBase.focusedRow
GridBase.focusedRowIndex
GridBase.footer
GridBase.fullDisplayRowCount
GridBase.groupPanel
GridBase.header
GridBase.hscrollBar
GridBase.isEmpty
GridBase.leftCol
GridBase.leftPos
GridBase.lookupProvider
GridBase.maxRowCount
GridBase.operateOptions
GridBase.readMode
GridBase.rowCount
GridBase.rowFilter
GridBase.rowGroup
GridBase.rowIndicator
GridBase.rowSource
GridBase.scrollEdgeStyles
GridBase.sorted
GridBase.styleManager
GridBase.styles
GridBase.summaryMode
GridBase.topIndex
GridBase.undoable
GridBase.visibleColumnCount
GridBase.vscrollBar
Methods
checkChildren
collapse
collapseAll
expand
expandAll
getCheckedDataRows
getLevels
getRowOfDataRow
getRowsOfDataRows
getSelectedDataRows
Inherited Methods
GridBase.addLookupSource
GridBase.append
GridBase.beginUpdate
GridBase.cancel
GridBase.cancelEditor
GridBase.canRedo
GridBase.canUndo
GridBase.checkAll
GridBase.checkRows
GridBase.clearCellStyles
GridBase.clearColumnStyles
GridBase.clearColumnTags
GridBase.clearLookupData
GridBase.clearRowHeights
GridBase.clearSelection
GridBase.clearStyles
GridBase.clearUndo
GridBase.closeFilterSelector
GridBase.closeProgress
GridBase.columnByField
GridBase.columnByName
GridBase.columnByTag
GridBase.columnsByField
GridBase.columnsByTag
GridBase.commit
GridBase.commitEditor
GridBase.commitOrCancel
GridBase.createColumn
GridBase.createColumns
GridBase.ctor
GridBase.deleteCheckedRows
GridBase.deleteRows
GridBase.deleteSelection
GridBase.edit
GridBase.endUpdate
GridBase.eraseSelection
GridBase.excludeColumn
GridBase.existsCellStyle
GridBase.existsLookupData
GridBase.fillEditSearchItems
GridBase.fillLookupRows
GridBase.fillLookupValues
GridBase.fitColumnWidth
GridBase.fitRowHeight
GridBase.generateColumns
GridBase.getAllRows
GridBase.getCellIndex
GridBase.getCellStyle
GridBase.getCellStyleId
GridBase.getCellValue
GridBase.getCheckedDataIndices
GridBase.getCheckedRowIndices
GridBase.getCheckedRows
GridBase.getColumn
GridBase.getColumnNames
GridBase.getDataCellRect
GridBase.getDataColumns
GridBase.getEditingRow
GridBase.getFieldValues
GridBase.getFirstCell
GridBase.getFirstColumn
GridBase.getGroupLevel
GridBase.getGroupLevels
GridBase.getHiddenColumns
GridBase.getLastColumn
GridBase.getLeafColumns
GridBase.getLeafRows
GridBase.getPopupMenu
GridBase.getRow
GridBase.getRowHeight
GridBase.getRowIndexOfDataIndex
GridBase.getRowIndices
GridBase.getRowIndicesOfDataIndices
GridBase.getRowOfDataIndex
GridBase.getRows
GridBase.getSelectedDataIndices
GridBase.getSelectedRowIndices
GridBase.getSelectedRows
GridBase.getSelection
GridBase.getSortCases
GridBase.getSortDirections
GridBase.getSortFieldCount
GridBase.getSortFields
GridBase.getSummary
GridBase.getTopRows
GridBase.getUnCheckedDataIndices
GridBase.getUnCheckedRowIndices
GridBase.getUnCheckedRows
GridBase.getValueAt
GridBase.getValueColumns
GridBase.getVisibleColumn
GridBase.getVisibleColumns
GridBase.hideEditor
GridBase.hideToast
GridBase.initializeReuse
GridBase.insert
GridBase.invalidate
GridBase.invalidateLayout
GridBase.isAllChecked
GridBase.isCheckable
GridBase.isChecked
GridBase.isDeletedRow
GridBase.isEditing
GridBase.isGroupedColumn
GridBase.isRowEditing
GridBase.isValidCell
GridBase.isValidColumn
GridBase.isValidRow
GridBase.linearizeColumns
GridBase.loadPalettes
GridBase.loadStyles
GridBase.makeCellVisible
GridBase.makeColumnVisible
GridBase.makeRowVisible
GridBase.orderBy
GridBase.orderByFields
GridBase.pointToIndex
GridBase.redo
GridBase.refreshView
GridBase.registerCellEditors
GridBase.registerCellRenderers
GridBase.registerCellStyle
GridBase.registerCellStyles
GridBase.registerColumnLayouts
GridBase.registerColumnStyles
GridBase.registerFillPalette
GridBase.registerImageList
GridBase.registerPopupMenu
GridBase.registerStrokePalette
GridBase.removeLookupSource
GridBase.resetGrid
GridBase.resetSize
GridBase.restoreColumns
GridBase.revealRow
GridBase.revertSelection
GridBase.saveColumnLayout
GridBase.searchCell
GridBase.searchRow
GridBase.selectColumnFilters
GridBase.setAllChecked
GridBase.setCellStyle
GridBase.setCellStyleRows
GridBase.setCellStyles
GridBase.setCellValue
GridBase.setCheckable
GridBase.setChecked
GridBase.setColumnsProperty
GridBase.setColumnsVisible
GridBase.setContextMenu
GridBase.setCursor
GridBase.setDefaultContextMenu
GridBase.setFocusedCell
GridBase.setFocusedColumn
GridBase.setFocusedIndex
GridBase.setFocusedRow
GridBase.setOptions
GridBase.setProgress
GridBase.setRowHeight
GridBase.setRowHeights
GridBase.setSelection
GridBase.setValueAt
GridBase.showEditor
GridBase.showProgress
GridBase.showToast
GridBase.sortColumn
GridBase.sortColumnWithStyle
GridBase.toggleChecked
GridBase.undo
GridBase.unregisterAllCellStyle
GridBase.unregisterCellEditors
GridBase.unregisterCellRenderers
GridBase.unregisterCellStyle
GridBase.unregisterCellStyles
GridBase.unregisterColumnStyles
GridBase.unregisterImageList
GridBase.unregisterPalette
GridBase.unregisterPopupMenu
GridBase.unsortColumn
GridBase.unsortColumnWithStyle
GridBase.update
GridBase.updateNow
GridBase.visitAllColumns
GridBase.visitColumns
GridBase.visitRows
Events
onCollapsed
onCollapsing
onExpanded
onExpanding
onRowChanged
onTreeIconClicked
Inherited Events
GridBase.onAllCheck
GridBase.onAllChecked
GridBase.onAutoFilled
GridBase.onCellButtonClicked
GridBase.onCheckBarHeadClicked
GridBase.onCheckBarHeadDblClicked
GridBase.onCheckCellClicked
GridBase.onCheckCellDblClicked
GridBase.onCheckedChanged
GridBase.onClickableCellClicked
GridBase.onColumnChecked
GridBase.onColumnHeaderClicked
GridBase.onColumnHeaderDblClicked
GridBase.onColumnMoved
GridBase.onColumnParentChanged
GridBase.onColumnResized
GridBase.onColumnResizing
GridBase.onColumnVisibleChanged
GridBase.onContextMenuClicked
GridBase.onContextMenuPopup
GridBase.onCopy
GridBase.onCurrentChanged
GridBase.onCurrentChanging
GridBase.onCurrentRowChanged
GridBase.onDataButtonClicked
GridBase.onDataCellClick
GridBase.onDataCellClicked
GridBase.onDataCellDblClicked
GridBase.onDeleting
GridBase.onDescendantDataCountChanged
GridBase.onDescendantRowCountChanged
GridBase.onDisplayRowCountChanged
GridBase.onEditCanceled
GridBase.onEditCellUpdated
GridBase.onEditChanged
GridBase.onEditCommitted
GridBase.onEditorButtonClicked
GridBase.onEditRowCanceled
GridBase.onEditRowCommitted
GridBase.onEditRowPasted
GridBase.onEditSearch
GridBase.onErrorClicked
GridBase.onExcludeColumn
GridBase.onFiltered
GridBase.onFiltering
GridBase.onFooterCellClicked
GridBase.onFooterCellDblClicked
GridBase.onFooterHeadClicked
GridBase.onFooterHeadDblClicked
GridBase.onHeaderHeadClicked
GridBase.onHeaderHeadDblClicked
GridBase.onHeaderSummaryCellClicked
GridBase.onHeaderSummaryCellDblClicked
GridBase.onHeaderSummaryHeadClicked
GridBase.onHeaderSummaryHeadDblClicked
GridBase.onInserting
GridBase.onInsertStarted
GridBase.onKeyDown
GridBase.onLeftPosChanged
GridBase.onPaste
GridBase.onPasted
GridBase.onPopupMenuClicked
GridBase.onPopupMenuPopup
GridBase.onRowChecked
GridBase.onRowCountChanged
GridBase.onRowIndicatorCellClick
GridBase.onRowIndicatorCellClicked
GridBase.onRowIndicatorCellDblClicked
GridBase.onRowResized
GridBase.onRowResizing
GridBase.onRowsChecked
GridBase.onScrollToBottom
GridBase.onScrollToTop
GridBase.onSelectionChanged
GridBase.onSelectionCleared
GridBase.onSelectionEnded
GridBase.onSelectionResized
GridBase.onShowEditor
GridBase.onSorted
GridBase.onSorting
GridBase.onStateCellClicked
GridBase.onStateCellDblClicked
GridBase.onTopIndexChanged
GridBase.onUndoStateChanged
GridBase.onUpdateStarted
GridBase.onUpdating
GridBase.onValidateCell
GridBase.onValidateRow

 

Code -1
    var tree = new DataLudi.TreeComponent(null, 'containerId').treeView();
    // 혹은, 간략해진 함수로
    var tree = DataLudi.createTreeView('containerId');
Code -2
    var columns = [...];
    var tree = new DataLudi.TreeComponent(null, 'containerId', columns).treeView();
    // 혹은, 간략해진 함수로
    var tree = DataLudi.createTreeView('containerId', columns);
See Also
createTreeView
TreeComponent.treeView
트리 개요
GridView
Examples
Hello Tree