SMART datagrid v.1 > Classes > GridBase

[ grids ver.1.3.5]   Back  Forward

DataLudi.GridBase.getRowHeight  method

Return the height of grid row which has explicitly specified the height by calling setRowHeight

If the height has not been explicitly specified, it will return NaN

function getRowHeight (row: GridRow|Integer): Integer;
Returns
Integer
Parameters
row - GridRow|Integer. required.
Code -1
    $('#fitHeight').click(function () {
        var r = grid.focusedRow();
        if (r && isNaN(grid.getRowHeight(r))) {
            grid.fitRowHeight(r);
        }
    });
See Also
setRowHeight
fitRowHeight
clearRowHeights
DisplayOptions.variableRowHeight
DisplayOptions.rowResizable
DisplayOptions.fixedRowResizable
Examples
Row Heights