Wijmo UI for the Web
addRange Method
wijmo.grid Namespace > selection type : addRange Method
The x-coordinate that represents the top left cell of the range.
The y-coordinate that represents the top left cell of the range.
The x-coordinate that represents the bottom right cell of the range.
The y-coordinate that represents the bottom right cell of the range.
Adds a cell range to the current selection.
Syntax
var instance = new wijmo.grid.selection();

// Parameters
var x0; // Type:  number
var y0; // Type:  number
var x1; // Type:  number
var y1; // Type:  number

instance.addRange(x0, y0, x1, y1);
function addRange( 
   x0 : number,
   y0 : number,
   x1 : number,
   y1 : number
) : void;

Parameters

x0
The x-coordinate that represents the top left cell of the range.
y0
The y-coordinate that represents the top left cell of the range.
x1
The x-coordinate that represents the bottom right cell of the range.
y1
The y-coordinate that represents the bottom right cell of the range.
Example
// Add a cell range (0,0)-(1,1) to the selection
selectionObj.addRange(0, 0, 1, 1);
Remarks
The result depends upon the chosen selection mode in the grid. For example, if current selection mode does not allow multiple selection the previous selection will be removed.
See Also

Reference

selection type