TabSheetSettings.ReturnSelectionAfterFocus

Syntax

ReturnSelectionAfterFocus: Boolean;

Description

The ReturnSelectionAfterFocus property determines whether it is possible to restore cell selection area after the table gets focus back.

Comments

Use JSON or the setReturnSelectionAfterFocus method to set the property value and the getReturnSelectionAfterFocus method to get the property value.

If the property is set to True, after the table gets focus back, the cell selection area is restored, otherwise it is not restored.

Example

To execute the example, the HTML page must contain the TabSheet component named tabSheet (see. Example of Creating the TabSheet Component). Set new style for all cells included in the table selection area, select the A0:B1 range, and enable restoring cell selection area after the table gets focus back:

// Set a new style for selected cells
tabSheet.setSelectedCellStyle("PPRelease");
// Get cell range
var range = tabSheet.getRangeFromString("A0:B1");
// Select the obtained range
range.select();
// Enable selection area restoring after the table get focus back
tabSheet.setReturnSelectionAfterFocus(true);

After executing the example the range A0:B1 is selected. The PPRelease style is applied to all cells in selection area:

After the table loses focus, cell selection area is removed. When the table gets focus back, selection area is restored.

See also:

TabSheetSettings