GridOptions Class
Declaration
export class GridOptions extends SerializableModel
The GridOptions class contains various grid options, such as grid line visibility, banded rows, cell merging, etc.
To access grid options, use the GridItem.gridOptions property.
constructor
Initializes a new instance of the GridOptions
class.
Declaration
constructor(
JSON?: any,
serializer?: ModelSerializer
)
Parameters
Name |
Type |
Description |
JSON |
any |
A JSON object used for dashboard deserialization. Do not pass this parameter directly.
|
serializer |
ModelSerializer |
An object used for dashboard deserialization. Do not pass this parameter directly.
|
Properties
allowCellMerge Property
Declaration
allowCellMerge: ko.Observable<boolean>
Property Value
columnWidthMode Property
Declaration
columnWidthMode: ko.Observable<GridColumnWidthMode>
Property Value
enableBandedRows Property
Declaration
enableBandedRows: ko.Observable<boolean>
Property Value
showColumnHeaders Property
Declaration
showColumnHeaders: ko.Observable<boolean>
Property Value
showHorizontalLines Property
Declaration
showHorizontalLines: ko.Observable<boolean>
Property Value
showVerticalLines Property
Declaration
showVerticalLines: ko.Observable<boolean>
Property Value
wordWrap Property
Declaration
wordWrap: ko.Observable<boolean>
Property Value
Methods
getInfo Method
Declaration
getInfo(): ISerializationInfoArray
Returns