Gets an array of IgxColumnComponents.
A list of currently rendered IgxGridRowComponent's.
Returns the IgxGridHeaderGroupComponent's minimum allowed width.
Gets the default row height.
Gets an array of the pinned IgxRowComponents.
A list of IgxGridRowComponent.
Enters add mode by spawning the UI under the specified row by rowID.
The rowID to spawn the add row UI for, or null to spawn it as the first record in the data view
Whether the record should be added as a child. Only applicable to igxTreeGrid.
Closes the advanced filtering dialog.
indicates whether the changes should be applied
Finishes the row transactions on the current row and returns whether the grid editing was canceled.
Filters a single IgxColumnComponent.
Finds the next occurrence of a given string in the grid and scrolls to the cell if it isn't visible.
the string to search.
optionally, if the search should be case sensitive (defaults to false).
optionally, if the text should match the entire value (defaults to false).
Finds the previous occurrence of a given string in the grid and scrolls to the cell if it isn't visible.
the string to search.
optionally, if the search should be case sensitive (defaults to false).
optionally, if the text should match the entire value (defaults to false).
Returns ICellPosition which defines the next cell,
according to the current position, that match specific criteria.
Returns ICellPosition which defines the previous cell,
according to the current position, that match specific criteria.
Returns an array of the current columns selection in the form of [{ column.field: cell.value }, ...].
Returns an array of the current cell selection in the form of [{ column.field: cell.value }, ...].
Get the currently selected ranges in the grid.
Returns whether the record is pinned or not.
Index of the record in the filteredSortedData collection.
Triggers change detection for the IgxGridComponent.
Calling markForCheck also triggers the grid pipes explicitly, resulting in all updates being processed.
May degrade performance if used when not needed, or if misused:
// DON'Ts:
// don't call markForCheck from inside a loop
// don't call markForCheck when a primitive has changed
grid.data.forEach(rec => {
rec = newValue;
grid.markForCheck();
});
// DOs
// call markForCheck after updating a nested property
grid.data.forEach(rec => {
rec.nestedProp1.nestedProp2 = newValue;
});
grid.markForCheck();
Places a column before or after the specified target column.
Navigates to a position in the grid based on provided rowindex and visibleColumnIndex.
Pin the row by its id.
The row id - primaryKey value or the data record instance.
The index at which to insert the row in the pinned collection.
Select specified columns.
if true clears the current selection
Get current selected columns.
Select range(s) of cells between certain rows and columns of the grid.
Sort a single IgxColumnComponent.
Toggles the specified column's visibility.
Unpin the row by its id.
The row id - primaryKey value or the data record instance.
Updates the IgxGridRowComponent and the corresponding data record by primary key.
the new value which is to be set.
corresponds to rowID.
corresponds to column field.
Gets/Sets a custom template for adding row UI when grid is empty.
Gets/Sets the advanced filtering state.
Gets/Sets a value indicating whether the advanced filtering is enabled.
Gets/Sets if the filtering is enabled.
Gets/Sets whether to auto-generate the columns.
Gets/Sets a list of property keys to be excluded from the generated column collection
Gets/Sets cell selection mode.
Sets the key of the row island by which child data would be taken from the row data if such is provided.
Controls the copy behavior of the grid.
Gets/Sets column selection mode
Gets/Sets the default width of the columns.
Gets/Sets the data clone strategy of the grid when in edit mode.
Gets the custom template, if any, used for row drag ghost.
The custom template, if any, that should be used when rendering the row drag indicator icon
Gets/Sets the message displayed when there are no records and the grid is filtered.
Get/Sets the message displayed when there are no records.
Gets/Sets a custom template when empty.
Gets the excel style header icon.
Sets if all immediate children of the grids for this IgxRowIslandComponent should be expanded/collapsed.
<igx-hierarchical-grid [data]="Data" [autoGenerate]="true">
<igx-row-island [key]="'childData'" [expandChildren]="true" #rowIsland>
<!-- ... -->
</igx-row-island>
</igx-hierarchical-grid>
Gets/Sets a list of key-value pairs [row ID, expansion state].
Gets/Sets the filtering state.
Gets/Sets the filtering logic of the IgxGridComponent.
Gets/Sets the filter mode.
Gets/Sets the filtering strategy of the grid.
Gets/Sets the key indicating whether a row has children. If row has no children it does not render an expand indicator.
Gets the row collapse indicator template.
Gets the header expand indicator template.
Gets the header row selector template.
Gets/Sets the height.
Gets/Sets if the row selectors are hidden.
Gets/Sets whether the grid is going to show a loading indicator.
Gets/Sets a custom template when loading.
Gets/Sets the locale.
Controls whether columns moving is enabled in the grid.
Sets/Gets the paginator template for each child grid created from this row island.
Gets/Sets the initial pinning configuration.
Gets/Sets the primary key.
Gets/Sets the resource strings.
Gets the row add text template.
Sets a conditional class selector to the grid's row element. Accepts an object literal, containing key-value pairs, where the key is the name of the CSS class and the value is either a callback function that returns a boolean, or boolean, like so:
callback = (row: RowType) => { return row.selected > 6; }
rowClasses = { 'className' : this.callback };
<igx-grid #grid [data]="Data" [rowClasses] = "rowClasses" [autoGenerate]="true"></igx-grid>
Gets the row collapse indicator template.
Gets/Sets whether rows can be moved.
Gets/Sets whether the rows are editable.
Gets the row edit actions template.
Gets the row edit text template.
Gets the row expand indicator template.
Gets/Sets the row height.
Gets/Sets row selection mode
Gets the row selector template.
Sets conditional style properties on the grid row element. It accepts an object literal where the keys are the style properties and the value is an expression to be evaluated.
styles = {
background: 'yellow',
color: (row: RowType) => row.selected : 'red': 'white'
}
<igx-grid #grid [data]="Data" [rowStyles]="styles" [autoGenerate]="true"></igx-grid>
Gets/Sets the current selection state.
Gets/Sets whether clicking over a row should select/deselect it
Gets/Sets whether the columns should be auto-generated once again after the initialization of the grid
Gets/Sets whether the expand/collapse all button in the header should be rendered.
Controls whether the summary row is visible when groupBy/parent row is collapsed.
Gets/Sets the display time for the row adding snackbar notification.
The custom template, if any, that should be used when rendering a header sorting indicator when columns are sorted in asc order.
The custom template, if any, that should be used when rendering a header sorting indicator when columns are sorted in desc order.
Gets custom template, if any, that should be used when rendering a header sorting indicator when columns are not sorted.
Gets/Sets the sorting state.
Gets/Sets the sorting options - single or multiple sorting.
Accepts an ISortingOptions object with any of the mode properties.
Gets/Sets the sorting strategy of the grid.
Gets/Sets the summary calculation mode.
Gets/Sets the summary position.
Get/Set IgxSummaryRow height
Sets/Gets the toolbar template for each child grid created from this row island.
Returns the total number of records.
Gets/Sets the trigger for validators used when editing the grid.
Gets/Sets the width of the grid.
Row island