selectRange

selects the specified range of elements

void selectRange(id row_id,id end_row_id, [boolean preserve] );
row_ididthe id of the first selected row in the selection range
end_row_ididthe id of the last selected row in the selection range
preservebooleanpreserves the previously made selection (true by default)
Details

Alternative syntax

The parameters of the method differ depending on the value of the select parameter.

The main description above relates to select: 'row'.

If select:'cell':

dtable.selectRange(row_id, column_id, end_row_id, end_column_id);
  • row_id - (string,number) the row id of the first selected cell in the selection range
  • column_id - (string,number) the column id of the first selected cell in the selection range
  • end_row_id - (string,number) the row id of the last selected cell in the selection range
  • end_column_id - (string,number) the column id of the last selected cell in the selection range

If select:'column':

dtable.selectRange(column_id, end_column_id);
  • column_id - (string,number) the id of the first selected column in the selection range
  • end_column_id - (string,number) the id of the last selected column in the selection range
See also
Back to top
If you have not checked yet, be sure to visit site of our main product Webix popular javascript framework and page of datagrid in html5 product.