Ignite UI for Angular Tree Grid - Documentation The Ignite UI Tree Grid displays and manipulates hierarchical data with consistent schema formatted as a table and provides features such as sorting, filtering, editing, column pinning, paging, column moving and hiding. Example:

actionStripComponents: IgcActionStripToken[]

Gets/Sets a custom template for adding row UI when grid is empty.

addRowEmptyTemplate: (ctx: void) => React.ReactNode

Gets/Sets the advanced filtering state.

advancedFilteringExpressionsTree: IgrFilteringExpressionsTree

Gets/Sets a value indicating whether the advanced filtering is enabled.

allowAdvancedFiltering: boolean

Gets/Sets if the filtering is enabled.

allowFiltering: boolean

Gets/Sets whether to auto-generate the columns.

autoGenerate: boolean

Gets/Sets a list of property keys to be excluded from the generated column collection

autoGenerateExclude: string[]

Gets/Sets whether the grid has batch editing enabled. When batch editing is enabled, changes are not made directly to the underlying data. Instead, they are stored as transactions, which can later be committed w/ the commit method.

batchEditing: boolean

Sets whether child records should be deleted when their parent gets deleted. By default it is set to true and deletes all children along with the parent.

cascadeOnDelete: boolean

Gets/Sets cell merge mode.

cellMergeMode: GridCellMergeMode

Gets/Sets cell selection mode.

cellSelection: GridSelectionMode

Sets the child data key of the TreeGridComponent.

childDataKey: string

Controls the copy behavior of the grid.

clipboardOptions: IgrClipboardOptions
columnList: IgrColumnComponent[]

Gets/Sets column selection mode

columnSelection: GridSelectionMode

Gets/Sets the default width of the columns.

columnWidth: string

Gets/Sets the array of data that populates the component.

data: any[]

Gets/Sets the data clone strategy of the grid when in edit mode.

dataCloneStrategy: IgrDataCloneStrategy

Gets the custom template, if any, used for row drag ghost.

dragGhostCustomTemplate: (ctx: IgrGridRowDragGhostContext) => React.ReactNode

The custom template, if any, that should be used when rendering the row drag indicator icon

dragIndicatorIconTemplate: (ctx: IgrGridEmptyTemplateContext) => React.ReactNode

Gets/Sets the message displayed when there are no records and the grid is filtered.

emptyFilteredGridMessage: string

Get/Sets the message displayed when there are no records.

emptyGridMessage: string

Gets/Sets a custom template when empty.

emptyGridTemplate: (ctx: IgrGridTemplateContext) => React.ReactNode

Gets the excel style header icon.

excelStyleHeaderIconTemplate: (ctx: IgrGridHeaderTemplateContext) => React.ReactNode

Sets the count of levels to be expanded in the TreeGridComponent. By default it is set to Infinity which means all levels would be expanded.

expansionDepth: number

Gets/Sets a list of key-value pairs [row ID, expansion state].

expansionStates: Map<any, boolean>

Gets/Sets the filtering state.

filteringExpressionsTree: IgrFilteringExpressionsTree

Gets/Sets the filtering logic of the GridComponent.

filteringLogic: FilteringLogic

Gets/Sets the filter mode.

filterMode: FilterMode

Gets/Sets the filtering strategy of the grid.

filterStrategy: IgrFilteringStrategy

Sets the foreign key of the TreeGridComponent.

foreignKey: string

Sets the key indicating whether a row has children. This property is only used for load on demand scenarios.

hasChildrenKey: string

Gets the row collapse indicator template.

headerCollapsedIndicatorTemplate: (ctx: IgrGridTemplateContext) => React.ReactNode

Gets the header expand indicator template.

headerExpandedIndicatorTemplate: (ctx: IgrGridTemplateContext) => React.ReactNode

Gets the header row selector template.

headSelectorTemplate: (ctx: IgrHeadSelectorTemplateContext) => React.ReactNode

Gets/Sets the height.

height: string

Gets/Sets if the row selectors are hidden.

hideRowSelectors: boolean

Sets the value of the id attribute. If not provided it will be automatically generated.

id: string

Gets/Sets whether the grid is going to show a loading indicator.

isLoading: boolean

Sets a callback for loading child rows on demand.

loadChildrenOnDemand: any

Gets/Sets a custom template when loading.

loadingGridTemplate: (ctx: IgrGridTemplateContext) => React.ReactNode

Gets/Sets the locale.

locale: string

Gets/Sets the merge strategy of the grid.

mergeStrategy: IgrGridMergeStrategy

Controls whether columns moving is enabled in the grid.

moving: boolean

Gets/Sets the outlet used to attach the grid's overlays to.

outlet: IgrOverlayOutletDirective
paginationComponents: IgrPaginatorComponent[]
pagingMode: GridPagingMode

Gets/Sets the initial pinning configuration.

pinning: IgrPinningConfig

Gets/Sets the primary key.

primaryKey: string

Returns an array of processed (filtered and sorted) root ITreeGridRecords.

processedRootRecords: IgrTreeGridRecord[]

Gets/Sets the resource strings.

resourceStrings: IgrGridResourceStrings

Returns an array of the root level ITreeGridRecords.

rootRecords: IgrTreeGridRecord[]

Gets the row add text template.

rowAddTextTemplate: (ctx: IgrGridEmptyTemplateContext) => React.ReactNode

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:

rowClasses: any

Gets the row collapse indicator template.

rowCollapsedIndicatorTemplate: (ctx: IgrGridRowTemplateContext) => React.ReactNode

Gets/Sets whether rows can be moved.

rowDraggable: boolean

Gets/Sets whether the rows are editable.

rowEditable: boolean

Gets the row edit actions template.

rowEditActionsTemplate: (ctx: IgrGridRowEditActionsTemplateContext) => React.ReactNode

Gets the row edit text template.

rowEditTextTemplate: (ctx: IgrGridRowEditTextTemplateContext) => React.ReactNode

Gets the row expand indicator template.

rowExpandedIndicatorTemplate: (ctx: IgrGridRowTemplateContext) => React.ReactNode

Gets/Sets the row height.

rowHeight: number

Template for the row loading indicator when load on demand is enabled.

rowLoadingIndicatorTemplate: (ctx: void) => React.ReactNode

Gets/Sets row selection mode

rowSelection: GridSelectionMode

Gets the row selector template.

rowSelectorTemplate: (ctx: IgrRowSelectorTemplateContext) => React.ReactNode

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.

rowStyles: any

Gets/Sets the current selection state.

selectedRows: any[]

Gets/Sets whether clicking over a row should select/deselect it

selectRowOnClick: boolean

Gets/Sets whether the columns should be auto-generated once again after the initialization of the grid

shouldGenerate: boolean

Controls whether the summary row is visible when groupBy/parent row is collapsed.

showSummaryOnCollapse: boolean

Gets/Sets the display time for the row adding snackbar notification.

snackbarDisplayTime: number

The custom template, if any, that should be used when rendering a header sorting indicator when columns are sorted in asc order.

sortAscendingHeaderIconTemplate: (ctx: IgrGridHeaderTemplateContext) => React.ReactNode

The custom template, if any, that should be used when rendering a header sorting indicator when columns are sorted in desc order.

sortDescendingHeaderIconTemplate: (ctx: IgrGridHeaderTemplateContext) => React.ReactNode

Gets custom template, if any, that should be used when rendering a header sorting indicator when columns are not sorted.

sortHeaderIconTemplate: (ctx: IgrGridHeaderTemplateContext) => React.ReactNode

Gets/Sets the sorting state.

sortingExpressions: IgrSortingExpression[]

Gets/Sets the sorting options - single or multiple sorting. Accepts an ISortingOptions object with any of the mode properties.

sortingOptions: IgrSortingOptions

Gets/Sets the sorting strategy of the grid.

sortStrategy: IgrGridSortingStrategy

Gets/Sets the summary calculation mode.

summaryCalculationMode: GridSummaryCalculationMode

Gets/Sets the summary position.

summaryPosition: GridSummaryPosition

Get/Set SummaryRow height

summaryRowHeight: number
toolbar: IgrGridToolbarComponent[]

Returns the total number of records.

totalRecords: number

Gets/Sets the trigger for validators used when editing the grid.

validationTrigger: GridValidationTrigger

Gets/Sets the width of the grid.

width: string

Gets an array of ColumnComponents.

get columns(): IgrColumnComponent[]

Returns IgrColumnComponent[]

A list of currently rendered GridRowComponent's.

get dataRowList(): IgrRowDirective[]

Returns IgrRowDirective[]

Returns the currently transformed paged/filtered/sorted/grouped/pinned/unpinned row data, displayed in the grid.

get dataView(): any[]

Returns any[]

Gets the default row height.

get defaultRowHeight(): number

Returns number

Returns an array of objects containing the filtered data.

get filteredData(): any

Returns any

Returns an array containing the filtered sorted data.

get filteredSortedData(): any[]

Returns any[]

Gets the number of hidden columns.

get hiddenColumnsCount(): number

Returns number

Represents the last search information.

get lastSearchInfo(): IgrSearchInfo

Returns IgrSearchInfo

Gets an array of the pinned ColumnComponents.

get pinnedColumns(): IgrColumnComponent[]

Returns IgrColumnComponent[]

Gets the number of pinned columns.

get pinnedColumnsCount(): number

Returns number

Gets an array of the pinned to the right ColumnComponents.

get pinnedEndColumns(): IgrColumnComponent[]

Returns IgrColumnComponent[]

Gets an array of the pinned RowComponents.

get pinnedRows(): IgrGridRowComponent[]

Returns IgrGridRowComponent[]

Gets an array of the pinned to the left ColumnComponents.

get pinnedStartColumns(): IgrColumnComponent[]

Returns IgrColumnComponent[]

A list of GridRowComponent.

get rowList(): IgrRowDirective[]

Returns IgrRowDirective[]

Returns an array of the selected GridCells.

get selectedCells(): IgrCellType[]

Returns IgrCellType[]

Gets an array of unpinned ColumnComponents.

get unpinnedColumns(): IgrColumnComponent[]

Returns IgrColumnComponent[]

Returns the state of the grid virtualization.

get virtualizationState(): IgrForOfState

Returns IgrForOfState

Returns an array of visible ColumnComponents.

get visibleColumns(): IgrColumnComponent[]

Returns IgrColumnComponent[]

Creates a new TreeGridRowComponent with the given data. If a parentRowID is not specified, the newly created row would be added at the root level. Otherwise, it would be added as a child of the row whose primaryKey matches the specified parentRowID. If the parentRowID does not exist, an error would be thrown. ``

addRow(data: any, parentRowID: any): void

Parameters

  • data: any
  • parentRowID: any

Returns void

Creates a new GridRowComponent and adds the data record to the end of the data source.

addRow(data: any): void

Parameters

  • data: any

Returns void

Example

this.grid1.addRow(record);

Enters add mode by spawning the UI under the specified row by rowID.

beginAddRowById(rowID: any, asChild: boolean): void

Parameters

  • rowID: any

    The rowID to spawn the add row UI for, or null to spawn it as the first record in the data view

  • asChild: boolean

    Whether the record should be added as a child. Only applicable to igxTreeGrid.

Returns void

Example

this.grid.beginAddRowById('ALFKI');
this.grid.beginAddRowById('ALFKI', true);
this.grid.beginAddRowById(null);

Enters add mode by spawning the UI with the context of the specified row by index.

beginAddRowByIndex(index: number, asChild: boolean): void

Parameters

  • index: number

    The index to spawn the UI at. Accepts integers from 0 to this.grid.dataView.length

  • asChild: boolean

    Whether the record should be added as a child. Only applicable to igxTreeGrid.

Returns void

Example

this.grid.beginAddRowByIndex(10);
this.grid.beginAddRowByIndex(10, true);
this.grid.beginAddRowByIndex(null);

Enters add mode by spawning the UI at the specified index.

beginAddRowByIndex(index: number): void

Parameters

  • index: number

    The index to spawn the UI at. Accepts integers from 0 to this.grid.dataView.length

Returns void

Example

this.grid.beginAddRowByIndex(0);

Deselect selected cells.

clearCellSelection(): void

Returns void

Example

this.grid.clearCellSelection();

If name is provided, clears the filtering state of the corresponding ColumnComponent.

clearFilter(name: string): void

Parameters

  • name: string

Returns void

Example

this.grid.clearFilter();

Removes all the highlights in the cell.

clearSearch(): void

Returns void

Example

this.grid.clearSearch();

If name is provided, clears the sorting state of the corresponding ColumnComponent.

clearSort(name: string): void

Parameters

  • name: string

Returns void

Example

this.grid.clearSort();

Closes the advanced filtering dialog.

closeAdvancedFilteringDialog(applyChanges: boolean): void

Parameters

  • applyChanges: boolean

    indicates whether the changes should be applied

Returns void

Collapses all rows.

``

collapseAll(): void

Returns void

Collapses all rows.

collapseAll(): void

Returns void

Example

this.grid.collapseAll();

Collapses the row by its id.

collapseRow(rowID: any): void

Parameters

  • rowID: any

    The row id - primaryKey value or the data record instance.

Returns void

Example

this.grid.collapseRow(rowID);

Removes the GridRowComponent and the corresponding data record by primary key.

deleteRow(rowSelector: any): any

Parameters

  • rowSelector: any

Returns any

Example

this.grid1.deleteRow(0);

Deselects all columns

deselectAllColumns(): void

Returns void

Example

this.grid.deselectAllColumns();

Deselects all rows

deselectAllRows(onlyFilterData: boolean): void

Parameters

  • onlyFilterData: boolean

Returns void

Example

this.grid.deselectAllRows();

Deselect specified columns by field.

deselectColumns(columns: string[] | IgrColumnComponent[]): void

Parameters

  • columns: string[] | IgrColumnComponent[]

Returns void

Example

this.grid.deselectColumns(['ID','Name']);

Deselect specified rows by ID.

deselectRows(rowIDs: any[]): void

Parameters

  • rowIDs: any[]

Returns void

Example

this.grid.deselectRows([1,2,5]);

Disable summaries for the specified column.

disableSummaries(rest: any[]): void

Parameters

  • rest: any[]

Returns void

Example

grid.disableSummaries('ProductName');

Enables summaries for the specified column and applies your customSummary.

enableSummaries(rest: any[]): void

Parameters

  • rest: any[]

Returns void

Example

grid.enableSummaries([{ fieldName: 'ProductName' }, { fieldName: 'ID' }]);

Enable summaries for the listed columns.

Finishes the row transactions on the current row and returns whether the grid editing was canceled.

endEdit(commit: boolean, evt: any): boolean

Parameters

  • commit: boolean
  • evt: any

Returns boolean

Expands all rows. ``

expandAll(): void

Returns void

Expands all rows.

expandAll(): void

Returns void

Example

this.grid.expandAll();

Expands the row by its id.

expandRow(rowID: any): void

Parameters

  • rowID: any

    The row id - primaryKey value or the data record instance.

Returns void

Example

this.grid.expandRow(rowID);

Filters a single ColumnComponent.

filter(name: string, value: any, conditionOrExpressionTree: IgrFilteringExpressionsTree | IgrFilteringOperation, ignoreCase: boolean): void

Parameters

Returns void

Filters all the ColumnComponent in the GridComponent with the same condition.

filterGlobal(value: any, condition: any, ignoreCase: any): void

Parameters

  • value: any
  • condition: any
  • ignoreCase: any

Returns void

Finds the next occurrence of a given string in the grid and scrolls to the cell if it isn't visible.

findNext(text: string, caseSensitive: boolean, exactMatch: boolean): number

Parameters

  • text: string

    the string to search.

  • caseSensitive: boolean

    optionally, if the search should be case sensitive (defaults to false).

  • exactMatch: boolean

    optionally, if the text should match the entire value (defaults to false).

Returns number

Example

this.grid.findNext("financial");

Finds the previous occurrence of a given string in the grid and scrolls to the cell if it isn't visible.

findPrev(text: string, caseSensitive: boolean, exactMatch: boolean): number

Parameters

  • text: string

    the string to search.

  • caseSensitive: boolean

    optionally, if the search should be case sensitive (defaults to false).

  • exactMatch: boolean

    optionally, if the text should match the entire value (defaults to false).

Returns number

Example

this.grid.findPrev("financial");

Returns a CellType object that matches the conditions.

getCellByColumn(rowIndex: number, columnField: string): IgrCellType

Parameters

  • rowIndex: number
  • columnField: string

Returns IgrCellType

Example

const myCell = this.grid1.getCellByColumn(2, "UnitPrice");

Returns a CellType object that matches the conditions.

getCellByKey(rowSelector: any, columnField: string): IgrCellType

Parameters

  • rowSelector: any

    match any rowID

  • columnField: string

Returns IgrCellType

Example

grid.getCellByKey(1, 'index');

Returns the ColumnComponent by field name.

getColumnByName(name: string): IgrColumnComponent

Parameters

  • name: string

Returns IgrColumnComponent

Example

const myCol = this.grid1.getColumnByName("ID");
getColumnByVisibleIndex(index: number): IgrColumnComponent

Parameters

  • index: number

Returns IgrColumnComponent

getDefaultExpandState(record: IgrTreeGridRecord): boolean

Parameters

Returns boolean

Gets the width to be set on GridHeaderGroupComponent.

getHeaderGroupWidth(column: IgrColumnComponent): string

Parameters

  • column: IgrColumnComponent

Returns string

Returns ICellPosition which defines the next cell, according to the current position, that match specific criteria.

getNextCell(currRowIndex: number, curVisibleColIndex: number, callback: any): IgrCellPosition

Parameters

  • currRowIndex: number
  • curVisibleColIndex: number
  • callback: any

Returns IgrCellPosition

Example

const nextEditableCellPosition = this.grid.getNextCell(0, 3, (column) => column.editable);

Gets calculated width of the pinned areas.

getPinnedEndWidth(takeHidden: boolean): void

Parameters

  • takeHidden: boolean

    If we should take into account the hidden columns in the pinned area.

Returns void

Example

const pinnedWidth = this.grid.getPinnedEndWidth();

Gets calculated width of the pinned areas.

getPinnedStartWidth(takeHidden: boolean): void

Parameters

  • takeHidden: boolean

    If we should take into account the hidden columns in the pinned area.

Returns void

Example

const pinnedWidth = this.grid.getPinnedStartWidth();

Returns ICellPosition which defines the previous cell, according to the current position, that match specific criteria.

getPreviousCell(currRowIndex: number, curVisibleColIndex: number, callback: any): IgrCellPosition

Parameters

  • currRowIndex: number
  • curVisibleColIndex: number
  • callback: any

Returns IgrCellPosition

Example

const previousEditableCellPosition = this.grid.getPreviousCell(0, 3, (column) => column.editable);

Returns the TreeGridRow by index.

getRowByIndex(index: number): IgrRowType

Parameters

  • index: number

Returns IgrRowType

Example

const myRow = treeGrid.getRowByIndex(1);

Returns the RowType object by the specified primary key.

getRowByKey(key: any): IgrRowType

Parameters

  • key: any

Returns IgrRowType

Example

const myRow = this.treeGrid.getRowByIndex(1);

Returns the data that is contained in the row component.

getRowData(rowSelector: any): any

Parameters

  • rowSelector: any

    correspond to rowID

Returns any

Example

const data = grid.getRowData(94741);

Returns an array of the current columns selection in the form of [{ column.field: cell.value }, ...].

getSelectedColumnsData(formatters: boolean, headers: boolean): void

Parameters

  • formatters: boolean
  • headers: boolean

Returns void

Returns an array of the current cell selection in the form of [{ column.field: cell.value }, ...].

getSelectedData(formatters: boolean, headers: boolean): any[]

Parameters

  • formatters: boolean
  • headers: boolean

Returns any[]

Returns an array of the current cell selection in the form of [{ column.field: cell.value }, ...].

getSelectedData(formatters: boolean, headers: boolean): void

Parameters

  • formatters: boolean
  • headers: boolean

Returns void

Get the currently selected ranges in the grid.

getSelectedRanges(): IgrGridSelectionRange[]

Returns IgrGridSelectionRange[]

Returns whether the record is pinned or not.

isRecordPinnedByIndex(rowIndex: number): void

Parameters

  • rowIndex: number

    Index of the record in the filteredSortedData collection.

Returns void

Triggers change detection for the GridComponent. 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: ``

markForCheck(): void

Returns void

Example

grid.markForCheck();

Places a column before or after the specified target column.

moveColumn(column: IgrColumnComponent, target: IgrColumnComponent, pos: DropPosition): void

Parameters

  • column: IgrColumnComponent
  • target: IgrColumnComponent
  • pos: DropPosition

Returns void

Example

grid.moveColumn(column, target);

Navigates to a position in the grid based on provided rowindex and visibleColumnIndex.

navigateTo(rowIndex: number, visibleColIndex: number, cb: any): void

Parameters

  • rowIndex: number
  • visibleColIndex: number
  • cb: any

Returns void

Example

this.grid.navigateTo(10, 3, (args) => { args.target.nativeElement.focus(); });

Opens the advanced filtering dialog.

openAdvancedFilteringDialog(overlaySettings: IgrOverlaySettings): void

Parameters

Returns void

Pins a column by field name.

pinColumn(columnName: string, index: number, pinningPosition: ColumnPinningPosition): boolean

Parameters

Returns boolean

Example

this.grid.pinColumn("ID");

Pin the row by its id.

pinRow(rowID: any, index: number): boolean

Parameters

  • rowID: any

    The row id - primaryKey value or the data record instance.

  • index: number

    The index at which to insert the row in the pinned collection.

Returns boolean

Example

this.grid.pinRow(rowID);

Pin the row by its id.

pinRow(rowID: any, index: number, row: IgrRowType): boolean

Parameters

  • rowID: any

    The row id - primaryKey value or the data record instance.

  • index: number

    The index at which to insert the row in the pinned collection.

  • row: IgrRowType

Returns boolean

Example

this.grid.pinRow(rowID);

Recalculates all widths of columns that have size set to auto.

recalculateAutoSizes(): void

Returns void

Example

this.grid1.recalculateAutoSizes();

Recalculates grid width/height dimensions.

reflow(): void

Returns void

Example

this.grid.reflow();

Reapplies the existing search.

refreshSearch(updateActiveInfo: boolean, endEdit: boolean): number

Parameters

  • updateActiveInfo: boolean
  • endEdit: boolean

Returns number

Example

this.grid.refreshSearch();

Selects all columns

selectAllColumns(): void

Returns void

Example

this.grid.deselectAllColumns();

Selects all rows

selectAllRows(onlyFilterData: boolean): void

Parameters

  • onlyFilterData: boolean

Returns void

Example

this.grid.selectAllRows();
this.grid.selectAllRows(false);

Select specified columns.

selectColumns(columns: string[] | IgrColumnComponent[], clearCurrentSelection: boolean): void

Parameters

  • columns: string[] | IgrColumnComponent[]
  • clearCurrentSelection: boolean

    if true clears the current selection

Returns void

Example

this.grid.selectColumns(['ID','Name'], true);

Get current selected columns.

selectedColumns(): IgrColumnComponent[]

Returns IgrColumnComponent[]

Example

Returns an array with selected columns

const selectedColumns = this.grid.selectedColumns();

Select range(s) of cells between certain rows and columns of the grid.

selectRange(arg: IgrGridSelectionRange[]): void

Parameters

Returns void

Select specified rows by ID.

selectRows(rowIDs: any[], clearCurrentSelection: boolean): void

Parameters

  • rowIDs: any[]
  • clearCurrentSelection: boolean

    if true clears the current selection

Returns void

Example

this.grid.selectRows([1,2,5], true);

Sort a single ColumnComponent.

sort(expression: IgrSortingExpression[]): void

Parameters

Returns void

Example

this.grid.sort({ fieldName: name, dir: SortingDirection.Asc, ignoreCase: false });

Toggles the specified column's visibility.

toggleColumnVisibility(args: IgrColumnVisibilityChangedEventArgs): void

Parameters

Returns void

Example

this.grid1.toggleColumnVisibility({
      column: this.grid1.columns[0],
      newValue: true
});

Toggles the row by its id.

toggleRow(rowID: any): void

Parameters

  • rowID: any

    The row id - primaryKey value or the data record instance.

Returns void

Example

this.grid.toggleRow(rowID);

Unpins a column by field name. Returns whether the operation is successful.

unpinColumn(columnName: string, index: number): boolean

Parameters

  • columnName: string
  • index: number

Returns boolean

Example

this.grid.pinColumn("ID");

Unpin the row by its id.

unpinRow(rowID: any): boolean

Parameters

  • rowID: any

    The row id - primaryKey value or the data record instance.

Returns boolean

Example

this.grid.unpinRow(rowID);

Unpin the row by its id.

unpinRow(rowID: any, row: IgrRowType): boolean

Parameters

  • rowID: any

    The row id - primaryKey value or the data record instance.

  • row: IgrRowType

Returns boolean

Example

this.grid.unpinRow(rowID);

Updates the GridRowComponent and the corresponding data record by primary key.

updateCell(value: any, rowSelector: any, column: string): void

Parameters

  • value: any

    the new value which is to be set.

  • rowSelector: any

    corresponds to rowID.

  • column: string

    corresponds to column field.

Returns void

Example

this.gridWithPK.updateCell('Updated', 1, 'ProductName');

Updates the GridRowComponent

updateRow(value: any, rowSelector: any): void

Parameters

  • value: any
  • rowSelector: any

    correspond to rowID

Returns void

Example

grid.updateRow({
      ProductID: 1, ProductName: 'Spearmint', InStock: true, UnitsInStock: 1, OrderDate: new Date('2005-03-21')
  }, 1);
onActiveNodeChange(args: CustomEvent<IgrActiveNodeChangeEventArgs>): void

Parameters

Returns void

onAdvancedFilteringExpressionsTreeChange

Section titled "onAdvancedFilteringExpressionsTreeChange"
onAdvancedFilteringExpressionsTreeChange(args: CustomEvent<IgrFilteringExpressionsTree>): void

Parameters

Returns void

onCellClick(args: CustomEvent<IgrGridCellEventArgs>): void

Parameters

Returns void

onCellEdit(args: CustomEvent<IgrGridEditEventArgs>): void

Parameters

Returns void

onCellEditDone(args: CustomEvent<IgrGridEditDoneEventArgs>): void

Parameters

Returns void

onCellEditEnter(args: CustomEvent<IgrGridEditEventArgs>): void

Parameters

Returns void

onCellEditExit(args: CustomEvent<IgrGridEditDoneEventArgs>): void

Parameters

Returns void

onColumnInit(args: CustomEvent<IgrColumnComponent>): void

Parameters

Returns void

onColumnMoving(args: CustomEvent<IgrColumnMovingEventArgs>): void

Parameters

Returns void

onColumnMovingEnd(args: CustomEvent<IgrColumnMovingEndEventArgs>): void

Parameters

Returns void

onColumnMovingStart(args: CustomEvent<IgrColumnMovingStartEventArgs>): void

Parameters

Returns void

onColumnPin(args: CustomEvent<IgrPinColumnCancellableEventArgs>): void

Parameters

Returns void

onColumnPinned(args: CustomEvent<IgrPinColumnEventArgs>): void

Parameters

Returns void

onColumnResized(args: CustomEvent<IgrColumnResizeEventArgs>): void

Parameters

Returns void

onColumnsAutogenerated(args: CustomEvent<IgrColumnsAutoGeneratedEventArgs>): void

Parameters

Returns void

onColumnSelectionChanging(args: CustomEvent<IgrColumnSelectionEventArgs>): void

Parameters

Returns void

onColumnVisibilityChanged(args: CustomEvent<IgrColumnVisibilityChangedEventArgs>): void

Parameters

Returns void

onColumnVisibilityChanging(args: CustomEvent<IgrColumnVisibilityChangingEventArgs>): void

Parameters

Returns void

onContextMenu(args: CustomEvent<IgrGridContextMenuEventArgs>): void

Parameters

Returns void

onDataChanged(args: CustomEvent<IgrForOfDataChangeEventArgs>): void

Parameters

Returns void

onDataChanging(args: CustomEvent<IgrForOfDataChangeEventArgs>): void

Parameters

Returns void

onDoubleClick(args: CustomEvent<IgrGridCellEventArgs>): void

Parameters

Returns void

onExpansionStatesChange(args: CustomEvent<Map<any, boolean>>): void

Parameters

Returns void

onFiltering(args: CustomEvent<IgrFilteringEventArgs>): void

Parameters

Returns void

onFilteringDone(args: CustomEvent<IgrFilteringExpressionsTree>): void

Parameters

Returns void

onFilteringExpressionsTreeChange(args: CustomEvent<IgrFilteringExpressionsTree>): void

Parameters

Returns void

onFormGroupCreated(args: CustomEvent<IgrGridFormGroupCreatedEventArgs>): void

Parameters

Returns void

onGridCopy(args: CustomEvent<IgrGridClipboardEvent>): void

Parameters

Returns void

onGridKeydown(args: CustomEvent<IgrGridKeydownEventArgs>): void

Parameters

Returns void

onGridScroll(args: CustomEvent<IgrGridScrollEventArgs>): void

Parameters

Returns void

onRangeSelected(args: CustomEvent<IgrGridSelectionRange>): void

Parameters

Returns void

onRendered(args: CustomEvent<boolean>): void

Parameters

Returns void

onRowAdd(args: CustomEvent<IgrRowDataCancelableEventArgs>): void

Parameters

Returns void

onRowAdded(args: CustomEvent<IgrRowDataEventArgs>): void

Parameters

Returns void

onRowClick(args: CustomEvent<IgrGridRowEventArgs>): void

Parameters

Returns void

onRowDelete(args: CustomEvent<IgrRowDataCancelableEventArgs>): void

Parameters

Returns void

onRowDeleted(args: CustomEvent<IgrRowDataEventArgs>): void

Parameters

Returns void

onRowDragEnd(args: CustomEvent<IgrRowDragEndEventArgs>): void

Parameters

Returns void

onRowDragStart(args: CustomEvent<IgrRowDragStartEventArgs>): void

Parameters

Returns void

onRowEdit(args: CustomEvent<IgrGridEditEventArgs>): void

Parameters

Returns void

onRowEditDone(args: CustomEvent<IgrGridEditDoneEventArgs>): void

Parameters

Returns void

onRowEditEnter(args: CustomEvent<IgrGridEditEventArgs>): void

Parameters

Returns void

onRowEditExit(args: CustomEvent<IgrGridEditDoneEventArgs>): void

Parameters

Returns void

onRowPinned(args: CustomEvent<IgrPinRowEventArgs>): void

Parameters

Returns void

onRowPinning(args: CustomEvent<IgrPinRowEventArgs>): void

Parameters

Returns void

onRowSelectionChanging(args: CustomEvent<IgrRowSelectionEventArgs>): void

Parameters

Returns void

onRowToggle(args: CustomEvent<IgrRowToggleEventArgs>): void

Parameters

Returns void

onSelected(args: CustomEvent<IgrGridCellEventArgs>): void

Parameters

Returns void

onSelectedRowsChange(args: CustomEvent<any[]>): void

Parameters

Returns void

onSorting(args: CustomEvent<IgrSortingEventArgs>): void

Parameters

Returns void

onSortingDone(args: CustomEvent<IgrSortingExpression[]>): void

Parameters

Returns void

onSortingExpressionsChange(args: CustomEvent<IgrSortingExpression[]>): void

Parameters

Returns void

onToolbarExporting(args: CustomEvent<IgrGridToolbarExportEventArgs>): void

Parameters

Returns void

onValidationStatusChange(args: CustomEvent<IgrGridValidationStatusEventArgs>): void

Parameters

Returns void