MergeManager Class
File
wijmo.grid.js
Module
wijmo.grid
Derived Classes
DetailMergeManager

Defines the FlexGrid's cell merging behavior.

An instance of this class is automatically created and assigned to the grid's mergeManager property to implement the grid's default merging behavior.

If you want to customize the default merging behavior, create a class that derives from MergeManager and override the getMergedRange method.

Constructor

Methods

Constructor

constructor

constructor(grid?: FlexGrid): MergeManager

Initializes a new instance of the MergeManager class.

Parameters
  • grid: FlexGrid Optional

    FlexGrid that owns this MergeManager. This parameter is optional and deprecated. Please don't use it.

Returns
MergeManager

Methods

getMergedRange

getMergedRange(p: GridPanel, r: number, c: number, clip?: boolean): CellRange

Gets a CellRange that specifies the merged extent of a cell in a GridPanel.

Parameters
  • p: GridPanel

    The GridPanel that contains the range.

  • r: number

    The index of the row that contains the cell.

  • c: number

    The index of the column that contains the cell.

  • clip: boolean Optional

    Whether to clip the merged range to the grid's current view range.

Returns
CellRange