selection

selection

선택에 관련된 기능

Methods

(static) clearSelection() → {undefined}

셀 선택을 취소합니다
Example
grid.clearSelection();
Returns:
Type
undefined

(static) getSelectCellData()

Deprecated:
  • Yes
단일 셀데이터 취득

(static) getSelectCellDatas()

Deprecated:
  • Yes
복수 셀데이터 취득

(static) getSelection() → {array}

선택된 셀에 대한 좌표를 반환합니다 컬럼이 숨김속성인경우 제외합니다
Example
grid.getSelection();
Returns:
선택된 셀좌표의 배열
Type
array

(static) getSelectionData(includeAllColumnFlag) → {array}

선택된 데이터를 반환합니다.
Example
grid.getSelectionData();
Parameters:
Name Type Default Description
includeAllColumnFlag false true로 설정시 선택한 열의 모든 컬럼 데이터를 반환한다
Returns:
선택된 셀에 해당하는 데이터 반환
Type
array

(static) getSelectionX() → {array}

선택된 컬럼에 대한 인덱스를 반환합니다
Example
grid.getSelectionX();
Returns:
선택된 컬럼 번호의 배열
Type
array

(static) getSelectionY() → {array}

선택된 로우에 대한 인덱스를 반환합니다
Example
grid.getSelectionY();
Returns:
선택된 로우 번호의 배열
Type
array

(static) getSelectRowData()

Deprecated:
  • Yes

(static) getSelectRowDatas()

Deprecated:
  • Yes

(static) setSelection(enableEdit, rownum, colnum) → {boolean}

지정한 좌표의 셀을 선택합니다
Example
grid.setSelection(false,1,1);//1,1좌표를 선택
grid.setSelection(true,1,1);//1,1좌표를 선택 후 편집 활성화
Parameters:
Name Type Description
enableEdit boolean 셀 선택 후 에디트 활성화 여부
rownum number 행 번호
colnum number 열 번호
Returns:
실패시 false
Type
boolean