SMART datagrid v.1 > Classes > GridBase

Back  Forward

DataLudi.GridBase.getSelectedRows  method

現在選択された領域に含まれた達をアレイでリターンする。 

function getSelectedRows (): [GridRow];
Returns
[GridRow]
Code -1
    // 選択になった行をcheckする。
    $('#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