Selection: Object
The Selection property sets the range of selected table cells.
To execute the example, the HTML page must contain a data area named dataArea (see Example of the DataArea Component Layout). Create the function
function selectCells() {
dataArea().getGridView().setSelection(JSON.parse('{"type":"Normal","range":{"left":0,"top":0,"height":0,"width":0,"parts":{"it":[{"left":1,"top":1,"width":1,"height":3,"type":"Cells"}]},"type":"MultiPart"}}'))
}
A range that includes three cells is selected after executing the selectCells function:
See also: