SMART datagrid v.1 > Classes > GridBase

Back  Forward

DataLudi.GridBase.getSelectedRows  method

将包含在选中区域的,返回为数组。 

function getSelectedRows (): [GridRow];
Returns
[GridRow]
Code -1
    // 勾选所选行。
    $('#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