Multiple selection
If displayOptions.selectionMode is set to extended, selection of multiple blocks is possible using the Ctrl
(windows), command
(mac), and Shift
keys.
Set selection style to BLOCK
If you specify style as block
among the properties of selectionStyle, you can specify the selection area as multiple blocks.
gridView.displayOptions.selectionMode = "extended";
gridView.displayOptions.selectionStyle = "block";
Selection style to ROWS
If you specify style as rows
among the properties of selectionStyle, you can specify the selection area in multiple rows.
gridView.displayOptions.selectionMode = "extended";
gridView.displayOptions.selectionStyle = "rows";
Selection style to COLUMNS
If you specify style as columns
among the properties of selectionStyle, you can specify multiple columns as the selection area.
gridView.displayOptions.selectionMode = "extended";
gridView.displayOptions.selectionStyle = "columns";
Set selection style to SINGLE ROW
If you specify style as singleRow
among the properties of selectionStyle, you can specify multiple selection areas and one row.
gridView.displayOptions.selectionMode = "extended";
gridView.displayOptions.selectionStyle = "singleRow";
Multi-select style to SINGLE COLUMN
If you specify style as singleColumn
among the properties of selectionStyle, you can specify multiple selection areas and one column.
gridView.displayOptions.selectionMode = "extended";
gridView.displayOptions.selectionStyle = "singleColumn";
Set selection style to NONE
If you specify style as none
among the properties of selectionStyle, you can prevent the selection area from being designated as anything.
gridView.displayOptions.selectionStyle = "none";
Get information of selected area
You can check the area information of multiple selected blocks through gridView.getSelections(). If there are overlapping areas between each selection, they will all be displayed in each imported area information.
var selections = gridView.getSelections();
Get data from selection
You can check the data of multiple selected blocks through gridView.getSelectionsData(). Data retrieves information from a selected area row by row.
var datas = gridView.getSelectionsData();