SMART datagrid v.1 > Classes

Back  Forward

DataLudi.DisplayOptions  class

这是管理对网格显示的整体属性的对象。 

它被用作GridBase.displayOptions属性。 因为被创建在初始化网格的时点,所以无需直接创建这个类对象。 

Base Classes
GridBaseOptions > DLBase
Constructor
function DisplayOptions (grid: GridBase);
Properties
alertCellError
bubbleWheelEvents
checkChildColumnResizable
checkDataInited
columnExcludable
columnMovable
columnResizable
cursorCallback
defaultColumnWidth
emptyDataMessage
emptyGridMessage
fillWhenResized
fitRowHeightWhenUpdated
fitStyle
fixedColumnCount
fixedColumnExcludable
fixedColumnMovable
fixedColumnResizable
fixedRowCount
fixedRowResizable
focusable
focusBorder
focusVisible
forceButtonVisible
heightMeasurer
hideBordersWhenFitted
hideColumnWhenExcluded
hideDeletedRows
hintDuration
horzLiveScroll
horzScrollStep
horzWheelDelta
includeHeaderWhenFitColumn
liveScroll
maxRowHeight
mergedSelection
minRowHeight
nanText
parentChangable
preventSystemMenu
rightClickable
rowChangeDelay
rowHeight
rowHoverMask
rowResizable
selectDisplay
selectMode
selectStyle
showSingleSelection
showTooltip
summaryMode
tooltipAnimation
tooltipDelay
tooltipDuration
tooltipLineBreak
tooltipMaxWidth
tooltipMinWidth
tooltipStyles
variableRowHeight
wheelDelta
Inherited Properties
GridBaseOptions.grid
Inherited Methods
DLBase.assign
GridBaseOptions.ctor
DLBase.getProperties
DLBase.getProperty
DLBase.setProperties
DLBase.setProperty
DLBase.toggle

 

Code -1
    grid.setOptions({
        display: {
            selectStyle: "rows",
            wheelDelta: 5,
            fixedColumnCount: 2
        }
    });
Code -2
    grid.setDisplayOptions({
        columnMovable: true,
        columnResizable: true,
        fixedRowCount: 2
    });
See Also
GridBase.displayOptions
GridBase.setOptions
GridBase.editOptions
GridBase.operateOptions
EditOptions
OperateOptions
Examples
Hello Grid