Docs
API
  • getSelection(info: Boolean):Array

    Returns selected rows with value or values of cells.
    If selModel is row or rows than it returns Array of objects.

    
    [
      {...},
      {...}
    ]
    
    If selModel is cell or cells than it returns Array of arrays.
    
    [
      [...],
      [...]
    ]
    

    Example

    
    var selection = grid.getSelection();
    

    Example: Getting extra info

    
    var selection = grid.getSelection(true);
    

    See also

    Method clearSelection
    Method deSelectRow
    Method disableSelection
    Method enableSelection
    Method selectCell
    Method selectCellDown
    Method selectCellLeft
    Method selectCellRight
    Method selectCellUp
    Method selectRow
    Method setSelModel
    Method stopSelection

    Doc Link Selection
    Tutorial Link Selection