DGRow.reCalcRealHeight

Syntax

reCalcRealHeight();

Description

The reCalcRealHeight method recalculates real row height from table dimension metadata.

Example

To execute the example, the HTML page must contain the DataGrid component named grid (see Example of Creating the DataGrid Component). Check visibility of the first table row, refresh row metadata in table dimension and recalculate the first row height:

// Check visibility of the first table row
if (grid.getRows()[0].isVisible()) {
    console.log("Row is visible");
} else {
    console.log("Row is not visible");
}
// Add metadata of the first row to table dimension
grid.getRows()[0].getMeasures().getRowsMeta()["0"] = {
    "@H": 40
};
// Recalculate the first row height
grid.getRows()[0].reCalcRealHeight();
// Refresh table
grid.refresh();

As a result the console displays check result of the first row visibility:

Row is visible

 

Height of the first table row is changed:

See also:

DGRow