Angular DataGrid Row
This section describes the properties of a grid row. An object containing these properties comes to certain event-handling functions.
data
The data object represented by the row.
The contents of this object depend on the value of the rowType property. The following list illustrates this dependency.
- rowType is "data" ⇒ data contains the data object of the row
- rowType is "detail" ⇒ data contains the data object of the master row in the master-detail interface
rowType is "group" ⇒ data has the following structure.
- data: {
- key: string, // contains the grouping value
- items: array, // contains data objects that satisfy the grouping value
- isContinuation: boolean // "true" if the group starts on one of the previous pages; "false" otherwise
- }
rowType is "groupFooter" ⇒ data has the following structure.
- data: {
- key: string, // contains the grouping value
- items: array, // contains data objects that satisfy the grouping value
- isContinuation: boolean, // "true" if the group starts on one of the previous pages; "false" otherwise
- aggregates: array // contains values calculated for the group summary
- }
- rowType is "header", "filter" or "totalFooter" ⇒ data is undefined
isExpanded
Indicates whether the row is expanded or collapsed. Available if rowType is "data", "detail" or "group".
key
The contents of this object depend on the value of the rowType property. The following list illustrates this dependency.
- rowType is "data" ⇒ key contains the key of the data object represented by the row
- rowType is "detail" ⇒ key contains the key of the data object represented by the master row in the master-detail interface
- rowType is "group" or "groupFooter" ⇒ key contains the grouping value
- rowType is "header", "filter" or "totalFooter" ⇒ key is undefined
rowIndex
When you have several pages in a grid, grid rows are indexed beginning with 0 on each page. Note that group rows are counted as well and, thus, have row indexes. For further information about row indexes, see the Column and Row Indexes topic.
rowType
This field can have one of the following values.
- "data" - for rows representing data objects
- "detail" - for the row containing the detail section in the master-detail interface
- "detailAdaptive" - for the row containing in the detail section of the adaptive column
- "group" - for group rows
- "groupFooter" - for the row displayed in the group footer
- "header" - for the header row
- "filter" - for the filter row
- "totalFooter" - for the row containing the total summary
If you have technical questions, please create a support ticket in the DevExpress Support Center.