getActiveSelectedRange();
The getActiveSelectedRange method returns the active selected cell range.
This method returns a PP.Ui.TabSheetRange value.
To execute the example, the HTML page must contain the TabSheet component named tabSheet (see Example of Creating the TabSheet Component). Select a range (3, 3, 4, 4) and show it in the visible table area:
// Get a cell range by the specified coordinates
var range = tabSheet.getRange(3, 3, 4, 4);
// Select the range
range.select();
// Get an active selected cell range
var activeRange = tabSheet.getActiveSelectedRange();
// Get coordinates of the lower right cell of the active range
var brCoord = activeRange.getCorners().brCoord;
// Display the range in the visible table area
if (tabSheet.isColVisibleAndOutsideVisibleRange(brCoord.colIndex) |
tabSheet.isRowVisibleAndOutsideVisibleRange(brCoord.rowIndex)) {
tabSheet.ensureRangeVisibility(activeRange)
};
After executing the example the specified range is selected and displayed in the visible area of the table:

See also: