SMART datagrid v.1 > Classes > TreeView

Back  Forward

DataLudi.TreeView.getSelectedDataRows  method

It returns Data Rows which have been contained in the current selection areas as array. 

When the selection area is more than one, if specify uniquify as true, it will remove duplicated rows and return in sorted state. 

function getSelectedDataRows (uniquify: Boolean): [TreeDataRow];
Returns
[TreeDataRow]
Parameters
uniquify - Boolean. Defaults to false.
If it is true, when the selection area is more than one, it will remove the duplicated rows and return in sorted state.
Code -1
    $('#deleteSelected').click(function (ev) {
        var rows = grid.getSelectedDataRows(true);
        dataset.deleteRows(rows);
    });
See Also
getCheckedDataRows
TreeDataRow
deleteRows
Tree Overview
Examples
Check Bar
Tree Data Set