Type Parameters

Hierarchy

Hierarchy

Constructors

Properties

Accessors

Methods

Constructors

Properties

context: any

If using the new style context, re-declare this in your class to be the React.ContextType of your static contextType. Should be used with type annotation or static contextType.

static contextType = MyContext
// For TS pre-3.7:
context!: React.ContextType<typeof MyContext>
// For TS 3.7 and above:
declare context: React.ContextType<typeof MyContext>
props: Readonly<P> & Readonly<{
    children?: ReactNode;
}>
refs: {
    [key: string]: ReactInstance;
}

Type declaration

  • [key: string]: ReactInstance
state: Readonly<{}>
contextType?: Context<any>

If set, this.context will be set at runtime to the current value of the given Context.

Usage:

type MyContext = number
const Ctx = React.createContext<MyContext>(0)

class Foo extends React.Component {
static contextType = Ctx
context!: React.ContextType<typeof Ctx>
render () {
return <>My context's value: {this.context}</>;
}
}

Accessors

  • get actualActionStripComponents(): IgrActionStrip[]
  • Returns IgrActionStrip[]

  • get actualPaginationComponents(): IgrPaginator[]
  • Returns IgrPaginator[]

  • get addRowEmptyTemplate(): FunctionComponent<{
        dataContext: any;
    }> | Component<{
        dataContext: any;
    }, {}, any>
  • Returns FunctionComponent<{
        dataContext: any;
    }> | Component<{
        dataContext: any;
    }, {}, any>

  • set addRowEmptyTemplate(v): void
  • Parameters

    • v: FunctionComponent<{
          dataContext: any;
      }> | Component<{
          dataContext: any;
      }, {}, any>

    Returns void

  • get advancedFilteringExpressionsTree(): IgrFilteringExpressionsTree
  • Gets/Sets the advanced filtering state.

    Example

    let advancedFilteringExpressionsTree = this.grid.advancedFilteringExpressionsTree;
    this.grid.advancedFilteringExpressionsTree = logic;

    Returns IgrFilteringExpressionsTree

  • set advancedFilteringExpressionsTree(v): void
  • Parameters

    Returns void

  • get allowAdvancedFiltering(): boolean
  • Returns boolean

  • set allowAdvancedFiltering(v): void
  • Parameters

    • v: boolean

    Returns void

  • get allowFiltering(): boolean
  • Returns boolean

  • set allowFiltering(v): void
  • Parameters

    • v: boolean

    Returns void

  • get autoGenerate(): boolean
  • Returns boolean

  • set autoGenerate(v): void
  • Parameters

    • v: boolean

    Returns void

  • get autoGenerateExclude(): string[]
  • Returns string[]

  • set autoGenerateExclude(v): void
  • Parameters

    • v: string[]

    Returns void

  • get batchEditing(): boolean
  • Returns boolean

  • set batchEditing(v): void
  • Parameters

    • v: boolean

    Returns void

  • get cellSelection(): GridSelectionMode
  • Gets/Sets cell selection mode.

    Remarks

    By default the cell selection mode is multiple selectionMode: GridSelectionMode

    Returns GridSelectionMode

  • set cellSelection(v): void
  • Parameters

    Returns void

  • get clipboardOptions(): IgrClipboardOptions
  • Controls the copy behavior of the grid.

    Returns IgrClipboardOptions

  • set clipboardOptions(v): void
  • Parameters

    Returns void

  • get columnPin(): ((s, e) => void)
  • Emitted before IgxColumnComponent is pinned.

    Remarks

    The index at which to insert the column may be changed through the insertAtIndex property.

    Example

    public columnPinning(event) {
    if (event.column.field === "Name") {
    event.insertAtIndex = 0;
    }
    }

    Returns ((s, e) => void)

  • set columnPin(ev): void
  • Parameters

    Returns void

  • get columnPinned(): ((s, e) => void)
  • Emitted after IgxColumnComponent is pinned.

    Remarks

    The index that the column is inserted at may be changed through the insertAtIndex property.

    Example

    public columnPinning(event) {
    if (event.column.field === "Name") {
    event.insertAtIndex = 0;
    }
    }

    Returns ((s, e) => void)

      • (s, e): void
      • Emitted after IgxColumnComponent is pinned.

        Remarks

        The index that the column is inserted at may be changed through the insertAtIndex property.

        Example

        public columnPinning(event) {
        if (event.column.field === "Name") {
        event.insertAtIndex = 0;
        }
        }

        Parameters

        Returns void

  • set columnPinned(ev): void
  • Parameters

    Returns void

  • get columnSelection(): GridSelectionMode
  • Gets/Sets column selection mode

    Remarks

    By default the row selection mode is none selectionMode: GridSelectionMode

    Returns GridSelectionMode

  • set columnSelection(v): void
  • Parameters

    Returns void

  • get columnWidth(): string
  • Returns string

  • set columnWidth(v): void
  • Parameters

    • v: string

    Returns void

  • get columns(): IgrColumnCollection
  • Gets an array of IgxColumnComponents.

    Example

    const colums = this.grid.columns.
    

    Returns IgrColumnCollection

  • get contentActionStripComponents(): IgrActionStrip[]
  • Returns IgrActionStrip[]

  • get contentPaginationComponents(): IgrPaginator[]
  • Returns IgrPaginator[]

  • get dataChanged(): ((s, e) => void)
  • Returns ((s, e) => void)

  • set dataChanged(ev): void
  • Parameters

    Returns void

  • get dataView(): any[]
  • Returns the currently transformed paged/filtered/sorted/grouped/pinned/unpinned row data, displayed in the grid.

    Example

    const dataView = this.grid.dataView;
    

    Returns any[]

  • get defaultHeaderGroupMinWidth(): number
  • Returns the IgxGridHeaderGroupComponent's minimum allowed width.

    Remarks

    Used internally for restricting header group component width. The values below depend on the header cell default right/left padding values.

    Returns number

  • get defaultRowHeight(): number
  • Gets the default row height.

    Example

    const rowHeigh = this.grid.defaultRowHeight;
    

    Returns number

  • get densityChanged(): ((s, e) => void)
  • Returns ((s, e) => void)

  • set densityChanged(ev): void
  • Parameters

    Returns void

  • get displayDensity(): DisplayDensity
  • Returns the theme of the component. The default theme is comfortable. Available options are comfortable, cosy, compact.

    let componentTheme = this.component.displayDensity;
    

    Returns DisplayDensity

  • set displayDensity(v): void
  • Parameters

    Returns void

  • get emptyFilteredGridMessage(): string
  • Returns string

  • set emptyFilteredGridMessage(v): void
  • Parameters

    • v: string

    Returns void

  • get emptyGridMessage(): string
  • Returns string

  • set emptyGridMessage(v): void
  • Parameters

    • v: string

    Returns void

  • get emptyGridTemplate(): FunctionComponent<{
        dataContext: any;
    }> | Component<{
        dataContext: any;
    }, {}, any>
  • Returns FunctionComponent<{
        dataContext: any;
    }> | Component<{
        dataContext: any;
    }, {}, any>

  • set emptyGridTemplate(v): void
  • Parameters

    • v: FunctionComponent<{
          dataContext: any;
      }> | Component<{
          dataContext: any;
      }, {}, any>

    Returns void

  • get filterMode(): FilterMode
  • Returns FilterMode

  • set filterMode(v): void
  • Parameters

    Returns void

  • get filteredData(): any
  • Returns an array of objects containing the filtered data.

    Example

    let filteredData = this.grid.filteredData;
    

    Returns any

  • get filteredSortedData(): any[]
  • Returns an array containing the filtered sorted data.

    Example

    const filteredSortedData = this.grid1.filteredSortedData;
    

    Returns any[]

  • get filteringLogic(): FilteringLogic
  • Returns FilteringLogic

  • set filteringLogic(v): void
  • Parameters

    Returns void

  • get gridCopy(): ((s, e) => void)
  • Emitted when a copy operation is executed.

    Remarks

    Fired only if copy behavior is enabled through the [clipboardOptions]IgxGridBaseDirective#clipboardOptions.

    Returns ((s, e) => void)

  • set gridCopy(ev): void
  • Parameters

    Returns void

  • get headerCollapsedIndicatorTemplate(): FunctionComponent<{
        dataContext: IgrGridTemplateContext;
    }> | Component<{
        dataContext: IgrGridTemplateContext;
    }, {}, any>
  • Gets the row collapse indicator template.

    Returns FunctionComponent<{
        dataContext: IgrGridTemplateContext;
    }> | Component<{
        dataContext: IgrGridTemplateContext;
    }, {}, any>

  • set headerCollapsedIndicatorTemplate(v): void
  • Parameters

    Returns void

  • get headerExpandedIndicatorTemplate(): FunctionComponent<{
        dataContext: IgrGridTemplateContext;
    }> | Component<{
        dataContext: IgrGridTemplateContext;
    }, {}, any>
  • Gets the header expand indicator template.

    Returns FunctionComponent<{
        dataContext: IgrGridTemplateContext;
    }> | Component<{
        dataContext: IgrGridTemplateContext;
    }, {}, any>

  • set headerExpandedIndicatorTemplate(v): void
  • Parameters

    Returns void

  • get hiddenColumnsCount(): number
  • Gets the number of hidden columns.

    Example

    const hiddenCol = this.grid.hiddenColumnsCount;
    ``

    Returns number

  • get hideRowSelectors(): boolean
  • Gets/Sets if the row selectors are hidden.

    Remarks

    By default row selectors are shown

    Returns boolean

  • set hideRowSelectors(v): void
  • Parameters

    • v: boolean

    Returns void

  • get isLoading(): boolean
  • Returns boolean

  • set isLoading(v): void
  • Parameters

    • v: boolean

    Returns void

  • get loadingGridTemplate(): FunctionComponent<{
        dataContext: any;
    }> | Component<{
        dataContext: any;
    }, {}, any>
  • Returns FunctionComponent<{
        dataContext: any;
    }> | Component<{
        dataContext: any;
    }, {}, any>

  • set loadingGridTemplate(v): void
  • Parameters

    • v: FunctionComponent<{
          dataContext: any;
      }> | Component<{
          dataContext: any;
      }, {}, any>

    Returns void

  • get locale(): string
  • Gets/Sets the locale.

    Remarks

    If not set, returns browser's language.

    Returns string

  • set locale(v): void
  • Parameters

    • v: string

    Returns void

  • get moving(): boolean
  • Controls whether columns moving is enabled in the grid.

    Returns boolean

  • set moving(v): void
  • Parameters

    • v: boolean

    Returns void

  • get outlet(): IgrOverlayOutletDirective
  • Gets/Sets the outlet used to attach the grid's overlays to.

    Remark

    If set, returns the outlet defined outside the grid. Otherwise returns the grid's internal outlet directive.

    Returns IgrOverlayOutletDirective

  • set outlet(v): void
  • Parameters

    Returns void

  • get pagingMode(): GridPagingMode
  • Returns GridPagingMode

  • set pagingMode(v): void
  • Parameters

    Returns void

  • get pinnedColumns(): IgrColumn<IIgrColumnProps>[]
  • Gets an array of the pinned IgxColumnComponents.

    Example

    const pinnedColumns = this.grid.pinnedColumns.
    

    Returns IgrColumn<IIgrColumnProps>[]

  • get pinnedColumnsCount(): number
  • Gets the number of pinned columns.

    Returns number

  • get pinning(): IgrPinningConfig
  • Returns IgrPinningConfig

  • set pinning(v): void
  • Parameters

    Returns void

  • get primaryKey(): string
  • Returns string

  • set primaryKey(v): void
  • Parameters

    • v: string

    Returns void

  • get rangeSelected(): ((s, e) => void)
  • Emitted when making a range selection.

    Remarks

    Range selection can be made either through drag selection or through keyboard selection.

    Returns ((s, e) => void)

  • set rangeSelected(ev): void
  • Parameters

    Returns void

  • get rendered(): ((s, e) => void)
  • Emitted after the ngAfterViewInit hook. At this point the grid exists in the DOM

    Returns ((s, e) => void)

  • set rendered(ev): void
  • Parameters

    Returns void

  • get resourceStrings(): IgrGridResourceStrings
  • Gets/Sets the resource strings.

    Remarks

    By default it uses EN resources.

    Returns IgrGridResourceStrings

  • set resourceStrings(v): void
  • Parameters

    Returns void

  • get rowClasses(): any
  • Returns any

  • set rowClasses(v): void
  • Parameters

    • v: any

    Returns void

  • get rowDraggable(): boolean
  • Returns boolean

  • set rowDraggable(v): void
  • Parameters

    • v: boolean

    Returns void

  • get rowEditable(): boolean
  • Returns boolean

  • set rowEditable(v): void
  • Parameters

    • v: boolean

    Returns void

  • get rowHeight(): number
  • Gets/Sets the width of the grid.

    Example

    let gridWidth = this.grid.width;
    

    Returns number

  • set rowHeight(v): void
  • Parameters

    • v: number

    Returns void

  • get rowSelection(): GridSelectionMode
  • Gets/Sets row selection mode

    Remarks

    By default the row selection mode is 'none' Note that in IgxGrid and IgxHierarchicalGrid 'multipleCascade' behaves like 'multiple'

    Returns GridSelectionMode

  • set rowSelection(v): void
  • Parameters

    Returns void

  • get rowStyles(): any
  • Returns any

  • set rowStyles(v): void
  • Parameters

    • v: any

    Returns void

  • get selectRowOnClick(): boolean
  • Gets/Sets whether clicking over a row should select/deselect it

    Remarks

    By default it is set to true enabled: boolean

    Returns boolean

  • set selectRowOnClick(v): void
  • Parameters

    • v: boolean

    Returns void

  • get selectedRows(): any[]
  • Returns any[]

  • set selectedRows(v): void
  • Parameters

    • v: any[]

    Returns void

  • get shouldGenerate(): boolean
  • Gets/Sets whether the columns should be auto-generated once again after the initialization of the grid

    Remarks

    This will allow to bind the grid to remote data and having auto-generated columns at the same time. Note that after generating the columns, this property would be disabled to avoid re-creating columns each time a new data is assigned.

    Example

    this.grid.shouldGenerate = true;
    

    Returns boolean

  • set shouldGenerate(v): void
  • Parameters

    • v: boolean

    Returns void

  • get showSummaryOnCollapse(): boolean
  • Returns boolean

  • set showSummaryOnCollapse(v): void
  • Parameters

    • v: boolean

    Returns void

  • get snackbarDisplayTime(): number
  • Gets/Sets the display time for the row adding snackbar notification.

    Remarks

    By default it is 6000ms.

    Returns number

  • set snackbarDisplayTime(v): void
  • Parameters

    • v: number

    Returns void

  • get sortAscendingHeaderIconTemplate(): FunctionComponent<{
        dataContext: IgrGridHeaderTemplateContext;
    }> | Component<{
        dataContext: IgrGridHeaderTemplateContext;
    }, {}, any>
  • The custom template, if any, that should be used when rendering a header sorting indicator when columns are sorted in asc order.

    Returns FunctionComponent<{
        dataContext: IgrGridHeaderTemplateContext;
    }> | Component<{
        dataContext: IgrGridHeaderTemplateContext;
    }, {}, any>

  • set sortAscendingHeaderIconTemplate(v): void
  • Parameters

    Returns void

  • get sortDescendingHeaderIconTemplate(): FunctionComponent<{
        dataContext: IgrGridHeaderTemplateContext;
    }> | Component<{
        dataContext: IgrGridHeaderTemplateContext;
    }, {}, any>
  • The custom template, if any, that should be used when rendering a header sorting indicator when columns are sorted in desc order.

    Returns FunctionComponent<{
        dataContext: IgrGridHeaderTemplateContext;
    }> | Component<{
        dataContext: IgrGridHeaderTemplateContext;
    }, {}, any>

  • set sortDescendingHeaderIconTemplate(v): void
  • Parameters

    Returns void

  • get sortingExpressions(): IgrSortingExpression[]
  • Returns IgrSortingExpression[]

  • set sortingExpressions(v): void
  • Parameters

    Returns void

  • get sortingOptions(): IgrSortingOptions
  • Returns IgrSortingOptions

  • set sortingOptions(v): void
  • Parameters

    Returns void

  • get summaryPosition(): GridSummaryPosition
  • Returns GridSummaryPosition

  • set summaryPosition(v): void
  • Parameters

    Returns void

  • get summaryRowHeight(): number
  • Get/Set IgxSummaryRow height

    Returns number

  • set summaryRowHeight(v): void
  • Parameters

    • v: number

    Returns void

  • get toolbarExporting(): ((s, e) => void)
  • Emitted when an export process is initiated by the user.

    Example

    toolbarExporting(event: IGridToolbarExportEventArgs){
    const toolbarExporting = event;
    }

    Returns ((s, e) => void)

  • set toolbarExporting(ev): void
  • Parameters

    Returns void

  • get totalRecords(): number
  • Returns the total number of records.

    Remarks

    Only functions when paging is enabled.

    Example

    const totalRecords = this.grid.totalRecords;
    

    Returns number

  • set totalRecords(v): void
  • Parameters

    • v: number

    Returns void

  • get unpinnedColumns(): IgrColumn<IIgrColumnProps>[]
  • Gets an array of unpinned IgxColumnComponents.

    Example

    const unpinnedColumns = this.grid.unpinnedColumns.
    

    Returns IgrColumn<IIgrColumnProps>[]

  • get virtualizationState(): IgrForOfState
  • Returns the state of the grid virtualization.

    Remarks

    Includes the start index and how many records are rendered.

    Example

    const gridVirtState = this.grid1.virtualizationState;
    

    Returns IgrForOfState

  • get visibleColumns(): IgrColumn<IIgrColumnProps>[]
  • Returns an array of visible IgxColumnComponents.

    Example

    const visibleColumns = this.grid.visibleColumns.
    

    Returns IgrColumn<IIgrColumnProps>[]

Methods

  • Parameters

    • rowID: any
    • Optional asChild: boolean

    Returns void

  • Deselect selected cells.

    Example

    this.grid.clearCellSelection();
    

    Returns void

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

    Remarks

    Otherwise clears the filtering state of all IgxColumnComponents.

    Example

    this.grid.clearFilter();
    

    name

    Parameters

    • name: string

    Returns void

  • Removes all the highlights in the cell.

    Example

    this.grid.clearSearch();
    

    Returns void

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

    Remarks

    otherwise clears the sorting state of all IgxColumnComponent.

    Example

    this.grid.clearSort();
    

    name

    Parameters

    • name: string

    Returns void

  • Closes the advanced filtering dialog. applyChanges indicates whether the changes should be applied

    Parameters

    • applyChanges: boolean
      • indicates whether the changes should be applied

    Returns void

  • Collapses all rows.

    Example

    this.grid.collapseAll();
    

    Returns void

  • Collapses the row by its id.

    Remarks

    ID is either the primaryKey value or the data record instance.

    Example

    this.grid.collapseRow(rowID);
    

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

    Parameters

    • rowID: any
      • The row id - primaryKey value or the data record instance.

    Returns void

  • Catches exceptions generated in descendant components. Unhandled exceptions will cause the entire component tree to unmount.

    Parameters

    • error: Error
    • errorInfo: ErrorInfo

    Returns void

  • Returns void

  • Called immediately after updating occurs. Not called for the initial render.

    The snapshot is only present if getSnapshotBeforeUpdate is present and returns non-null.

    Parameters

    • prevProps: Readonly<P>
    • prevState: Readonly<{}>
    • Optional snapshot: any

    Returns void

  • Called immediately before a component is destroyed. Perform any necessary cleanup in this method, such as cancelled network requests, or cleaning up any DOM elements created in componentDidMount.

    Returns void

  • Removes the IgxGridRowComponent and the corresponding data record by primary key.

    Remarks

    Requires that the primaryKey property is set. The method accept rowSelector as a parameter, which is the rowID.

    Example

    this.grid1.deleteRow(0);
    

    rowSelector

    Parameters

    • rowSelector: any

    Returns any

  • Deselects all columns

    Example

    this.grid.deselectAllColumns();
    

    Returns void

  • Deselects all rows

    Remarks

    By default if filtering is in place, selectAllRows() and deselectAllRows() select/deselect all filtered rows. If you set the parameter onlyFilterData to false that will deselect all rows in the grid exept deleted rows.

    Example

    this.grid.deselectAllRows();
    

    onlyFilterData

    Parameters

    • Optional onlyFilterData: boolean

    Returns void

  • Parameters

    • columns: string[]

    Returns void

  • Parameters

    • rowIDs: any[]

    Returns void

  • Parameters

    • rest: any[]

    Returns void

  • Parameters

    • rest: any[]

    Returns void

  • Parameters

    • commit: boolean
    • evt: any

    Returns void

  • Expands all rows.

    Example

    this.grid.expandAll();
    

    Returns void

  • Expands the row by its id.

    Remarks

    ID is either the primaryKey value or the data record instance.

    Example

    this.grid.expandRow(rowID);
    

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

    Parameters

    • rowID: any
      • The row id - primaryKey value or the data record instance.

    Returns void

  • Parameters

    Returns void

  • Parameters

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

    Returns void

  • Parameters

    • name: string

    Returns any

  • Parameters

    • text: string
    • Optional caseSensitive: boolean
    • Optional exactMatch: boolean

    Returns number

  • Parameters

    • text: string
    • Optional caseSensitive: boolean
    • Optional exactMatch: boolean

    Returns number

  • Parameters

    • Optional callback: (() => void)
        • (): void
        • Returns void

    Returns void

  • Returns the IgxColumnComponent by field name.

    Example

    const myCol = this.grid1.getColumnByName("ID");
    

    name

    Parameters

    • name: string

    Returns IgrColumn<IIgrColumnProps>

  • Gets the width to be set on IgxGridHeaderGroupComponent.

    Parameters

    Returns string

  • Parameters

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

    Returns IgrCellPosition

  • Gets calculated width of the pinned area.

    Example

    const pinnedWidth = this.grid.getPinnedWidth();
    

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

    Parameters

    • Optional takeHidden: boolean
      • If we should take into account the hidden columns in the pinned area.

    Returns void

  • Parameters

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

    Returns IgrCellPosition

  • Returns the data that is contained in the row component.

    Remarks

    If the primary key is not specified the row selector match the row data.

    Example

    const data = grid.getRowData(94741);
    

    rowSelector correspond to rowID

    Parameters

    • rowSelector: any
      • correspond to rowID

    Returns any

  • Parameters

    • formatters: boolean
    • Optional headers: boolean

    Returns void

  • Parameters

    • Optional formatters: boolean
    • Optional headers: boolean

    Returns void

  • Runs before React applies the result of render to the document, and returns an object to be given to componentDidUpdate. Useful for saving things such as scroll position before render causes changes to it.

    Note: the presence of getSnapshotBeforeUpdate prevents any of the deprecated lifecycle events from running.

    Parameters

    • prevProps: Readonly<P>
    • prevState: Readonly<{}>

    Returns any

  • Returns whether the record is pinned or not. rowIndex Index of the record in the filteredSortedData collection.

    Parameters

    • rowIndex: number
      • Index of the record in the filteredSortedData collection.

    Returns void

  • 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();

    Example

    grid.markForCheck();
    

    Returns void

  • Parameters

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

    Returns void

  • Opens the advanced filtering dialog.

    Parameters

    Returns void

  • Parameters

    • columnName: string
    • index: any

    Returns boolean

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

    Example

    this.grid1.recalculateAutoSizes();
    

    Returns void

  • Recalculates grid width/height dimensions.

    Remarks

    Should be run when changing DOM elements dimentions manually that affect the grid's size.

    Example

    this.grid.reflow();
    

    Returns void

  • Parameters

    • Optional updateActiveInfo: boolean
    • Optional endEdit: boolean

    Returns number

  • Returns DOMElement<{
        children: any[];
        class: P["className"];
        id: P["id"];
        ref: ((ref) => void);
        style: P["style"];
    }, any>

  • Selects all columns

    Example

    this.grid.deselectAllColumns();
    

    Returns void

  • Selects all rows

    Remarks

    By default if filtering is in place, selectAllRows() and deselectAllRows() select/deselect all filtered rows. If you set the parameter onlyFilterData to false that will select all rows in the grid exept deleted rows.

    Example

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

    onlyFilterData

    Parameters

    • Optional onlyFilterData: boolean

    Returns void

  • Parameters

    • columns: string[]
    • Optional clearCurrentSelection: boolean

    Returns void

  • Parameters

    Returns void

  • Parameters

    • rowIDs: any[]
    • Optional clearCurrentSelection: boolean

    Returns void

  • Get current selected columns.

    Example

    Returns an array with selected columns

    const selectedColumns = this.grid.selectedColumns();
    

    Returns IgrColumn<IIgrColumnProps>[]

  • Parameters

    • element: any

    Returns void

  • Type parameters

    Type Parameters

    • K extends never

    Parameters

    • state: {} | ((prevState, props) => {} | Pick<{}, K>) | Pick<{}, K>
    • Optional callback: (() => void)
        • (): void
        • Returns void

    Returns void

  • Parameters

    • nextProps: any
    • nextState: any

    Returns boolean

  • Parameters

    Returns void

  • Toggles the specified column's visibility.

    Example

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

    Parameters

    Returns void

  • Toggles the row by its id.

    Remarks

    ID is either the primaryKey value or the data record instance.

    Example

    this.grid.toggleRow(rowID);
    

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

    Parameters

    • rowID: any
      • The row id - primaryKey value or the data record instance.

    Returns void

  • Parameters

    • columnName: string
    • index: any

    Returns boolean

  • Parameters

    • value: any
    • rowSelector: any
    • column: string

    Returns void

  • Parameters

    • value: any
    • rowSelector: any

    Returns void

  • Parameters

    • internal: any

    Returns IgrDisplayDensityBase<IIgrDisplayDensityBaseProps>