Fusión de celdas de cuadrícula React

    La tabla de datos Ignite UI for React / cuadrícula de datos admite la combinación de celdas. Puede optar por participar y detectar cuándo los registros del mismo nivel adyacentes para una columna específica contienen el mismo valor. Mientras las celdas no están activas, seleccionadas o en modo de edición, el valor se muestra en todas las celdas.

    React Grid Cell Merging Example

    Descripción general

    Cell Merging in the React data grid can be configured by using the mergedCellMode option of the entire React grid or individual columns. This property can be set to one of the following options, listed below:

    • Never: The grid or column will never merge cells. This is the default behavior.
    • Always: The grid or column will always attempt to merge cells.
    • OnlyWhenSorted: The grid or column will only attempt to merge cells when a column is sorted.

    Tenga en cuenta que, independientemente del valor de esta propiedad, las celdas solo se pueden combinar entre registros hermanos.

    Cell merging can be evaluated based on whether the data is formatted or not using the mergedCellEvaluationCriteria property. This is applicable to the entire grid or individual columns and can be set to one of the following options, listed below:

    • RawValue: Merge cells from adjacent rows when the raw values from the cells are the same. This is the default value.
    • FormattedText: Merge cells from adjacent rows when the formatted value from the cells is the same.

    API References