SMART datagrid v.1 > Classes > GroupRow

Back  Forward

DataLudi.GroupRow.getMax  method

When summaryMode of GridBase.rowGroup is not NONE, it will return the maximum value by calculating the sum of field values specified by parameter field among data row of belonging to this group. 

function getMax (field: Integer): Number;
Returns
Number
Parameters
field - Integer. required.
Code -1
    $('#getMax').click(function () {
        var row = grid.focusedRow();
        if (row instanceof GroupRow) {
            var max = row.getMax(0);
            $('#max').val(max);
        }
    });
See Also
getNumber
getSum
getAvg
getMin
getStdev
getVar
Examples
Row Grouping
Merged Mode Grouping
Column Footer