Skip to content

selectRange

selects the specified range of elements

function selectRange(
// the id of the first selected row in the selection range
row_id: id,
// the id of the last selected row in the selection range
end_row_id: id,
// preserves the previously made selection (true by default)
preserve?: boolean
): void

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’:

dgrid.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’:

dgrid.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

Articles

API