SMART datagrid v.1 > Classes

Back  Forward

abstract DataLudi.GridBase  class

It is the basic class of grid style component such as GridView and TreeView, etc. 

The grid consists of one or more columns and rows. Each column is defined by Column model, and each row is defined by Grid Row model. Please refer to each Column Model Overview and Grid Row Model Overview help for more details. 

The grid connects to DataSet to get the data, and the data updated in the grid is reflected back to DataSet. And, data editing in the grid is basically Committed or Cancelled in each row rather than cell. 

The location of a data cell which consists of columns and rows is defined through CellIndex. The grid manages the location of focused cell in which currently has input focus by focusedIndex property. 

Since this class is an abstract class and being created automatically when the grid object creates Grid or Tree Component through createGridView, createTreeView, you do not need to directly create it. You can approach through GridComponent.gridView or TreeComponent.treeView

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

 

See Also
GridComponent.gridView
TreeComponent.treeView
Column Model Overview
Row Model Overview
Column
Item
GridView
TreeView
createGridView
createTreeView
Examples
Hello Grid