SMART datagrid v.1 > Classes > GridBase

Back  Forward

DataLudi.GridBase.getSelectedRows  method

Return Rows contained in the selected area currently as array. 

function getSelectedRows (): [GridRow];
Returns
[GridRow]
Code -1
    // Check the selected row.
    $('#checkSelection').click(function (ev) {
        var rows = grid.getSelectedRows();
        if (rows && rows.length > 0) {
            grid.checkRows(rows, $('#checked').is(':checked'));
        }
    });
See Also
getSelection
GridRow
SelectionItem
Examples
Selection