DataGridOptions / PartialDataGridOptions
Description
A DataGridOptions
is an interface that exposes properties to specify various options on the DataGrid
.
DataGridOptions
can be retreived at runtime by calling the DataGrid
.getOptions()
function, and can be set at runtime by calling the DataGrid
.setOptions(options)
function.
Properties
Property |
Type |
Default Value |
Description |
---|---|---|---|
allowColumnReorder |
boolean |
true |
true if the columns can be reordered through the user interface, otherwise false. By default, true. |
allowEdit |
boolean |
false |
true if the data items can be edited by the user through the user interface, otherwise false. By default, false. |
allowFilter |
boolean |
false |
true if the |
columnDefinitions |
[] |
An array representing the |
|
commitMode |
Cell |
A condition that determines when to start the validation and commit process of an item being edited. |
|
containerHeights |
{} |
Determines the height of data rows and group headers. |
|
dataSource |
undefined |
A |
|
editorDefinitions |
{} |
A collection of key/value pairs that links ids to |
|
editTriggers |
{ onKeyPress: OnKeyPress.f2 | OnkeyPress.space, onMouseAction: OnMouseAction.doubleClick, onNavigationFocus: null} |
|
|
enableAlternateRowStyle |
boolean |
true |
true if the rows can be set with the alternative background color, otherwise false. By default, true. |
experimental |
{ tooltipMode: “never”, statDefinitions: {}} |
Represents options that are provided on an experimental basis, which may be removed or changed at any time. |
|
filterDefinitions |
{} |
A collection of key/value pairs that links fields to |
|
filterLogicalMode |
And |
Or if the data is filtered inclusively, otherwise And. By default, And. |
|
filterOptions |
{ types: {}, fields: {} } |
A collection of |
|
formatDefinitions |
{} |
A collection of key/value pairs that links ids to |
|
groupConfigurations |
{} |
A collection of key/value pairs that links fields to |
|
groupDefinitions |
[] |
An array of |
|
layoutMode |
"infinite" |
Displays all items of the data source on a single page. |
|
layoutModeOptions |
{"paging": {type: "paging", itemsPerPage: 100}} |
When |
|
imageDefinitions |
{} |
A collection of key/value pairs that links ids to |
|
selectionMode |
Multiple |
The mode of selection. Currently available values are None (selection is deactivated) and Multiple (many rows can be selected). |
|
selectionUnit |
Row |
The unit of selection. Currently available values are Row (selection of |
|
sortConfigurations |
{} |
A collection of key/value pairs that links fields to |
|
sortDefinitions |
[] |
An array of |
|
styleDefinitions |
[] |
An array of |
|
styleSelector |
|
undefined |
A function used to provide custom styling to |
textDefinitions |
{} |
A collection of key/value pairs that links ids to |
|
theme |
string |
“light” |
The theme applied on the |
validationRuleDefinitions |
{} |
A collection of key/value pairs that links ids to |
|
valueConverters |
{} |
A collection of key/value pairs that links ids to |
|
viewerDefinitions |
{} |
A collection of key/value pairs that links ids to |
Remarks
A partial type/interface is an object in which properties are optional.