- Description:
nexacro Grid 객체입니다. 이 문서는 nexacro.Grid에 추가된 메소드를 문서화하기 위한 임시 섹션입니다.
nexacro Grid 객체입니다. 이 문서는 nexacro.Grid에 추가된 메소드를 문서화하기 위한 임시 섹션입니다.
Methods
addTreeChildRow(row) → {number}
- Description:
Tree형태의 Grid에서 특정 row의 자식 행을 추가한다.
- Deprecated:
- 유틸리티를 사용 바랍니다.$grid.addTreeChildRow
Example
this.Grid00.addTreeChildRow(10);
Parameters:
| Name | Type | Description |
|---|---|---|
row |
number | 자식을 추가할 row |
Returns:
추가된 자식 row
- Type
- number
addTreeSiblingRow(row) → {number}
- Description:
Tree형태의 Grid에서 특정 row의 형제 행을 추가한다.
- Deprecated:
- 유틸리티를 사용 바랍니다.$grid.addTreeSiblingRow
Example
this.Grid00.addTreeSiblingRow(10);
Parameters:
| Name | Type | Description |
|---|---|---|
row |
number | 자식을 추가할 row |
Returns:
추가된 자식 row
- Type
- number
cellFix(cell)
- Description:
Grid의 특정 cell을 고정처리한다.
- Deprecated:
- 유틸리티를 사용 바랍니다.$grid.cellFix
Example
this.Grid00.cellFix(4);
Parameters:
| Name | Type | Description |
|---|---|---|
cell |
number | 고정 처리할 head cell index |
cellUnFix()
- Description:
Grid에 설정되어있는 cellFix를 해제한다.
- Deprecated:
- 유틸리티를 사용 바랍니다.$grid.cellUnFix
Example
this.Grid00.cellUnFix();
colFix(colidx)
- Description:
Grid의 특정 column을 기준으로 셀을 고정처리한다.
- Deprecated:
- 유틸리티를 사용 바랍니다.$grid.colFix
Example
this.Grid00.colFix(4);
Parameters:
| Name | Type | Description |
|---|---|---|
colidx |
number | 고정 처리할 column index |
colUnFix()
- Description:
Grid에 설정되어있는 colFix를 해제한다.
- Deprecated:
- 유틸리티를 사용 바랍니다.$grid.colUnFix
Example
this.Grid00.colUnFix();
deleteMultiRows(rows, useWaitCursoropt)
- Description:
Grid의 특정 행 들을 삭제한다.
- Deprecated:
- 유틸리티를 사용 바랍니다.$grid.deleteMultiRows
Example
this.Grid00.deleteMultiRows([0,3,4]);
Parameters:
| Name | Type | Attributes | Default | Description |
|---|---|---|---|---|
rows |
Array.<number> | 삭제할 row들(dataset 기준) |
||
useWaitCursor |
boolean |
<optional> |
true
|
waitcursor 활성 여부 |
getCellBind(cell) → {string}
- Description:
특정 BodyCell에 바인딩 된 칼럼명을 가져온다.
- Deprecated:
- 유틸리티를 사용 바랍니다.$grid.getCellBind
Example
var colNm = this.Grid00.getCellBind(3);
Parameters:
| Name | Type | Description |
|---|---|---|
cell |
number | 칼럼명을 찾을 bodycell의 index |
Returns:
해당 cell의 Column명
- Type
- string
getComboCodeColumn(colNm) → {string}
- Description:
Grid의 특정 Column에 콤보로 바인딩 되어있는 Dataset의 칼럼 중, 실제 값에 해당하는 칼럼을 가져온다.
- Deprecated:
- 유틸리티를 사용 바랍니다.$grid.getComboCodeColumn
Example
this.Grid00.getComboCodeColumn("COM_CD");
Parameters:
| Name | Type | Description |
|---|---|---|
colNm |
string | 콤보가 세팅되어있는 칼럼명, Grid의 column명을 기준으로 한다. |
Returns:
실제 값에 해당하는 칼럼명, 콤보에 바인딩 되어있는 Dataset의 칼럼명을 기준으로 한다.
- Type
- string
getComboDataColumn(colNm) → {string}
- Description:
Grid의 특정 Column에 콤보로 바인딩 되어있는 Dataset의 칼럼 중, 표시될 값에 해당하는 칼럼을 가져온다.
- Deprecated:
- 유틸리티를 사용 바랍니다.$grid.getComboDataColumn
Example
this.Grid00.getComboDataColumn("COM_CD");
Parameters:
| Name | Type | Description |
|---|---|---|
colNm |
string | 콤보가 세팅되어있는 칼럼명, Grid의 column명을 기준으로 한다. |
Returns:
표시될 값에 해당하는 칼럼명, 콤보에 바인딩 되어있는 Dataset의 칼럼명을 기준으로 한다.
- Type
- string
getComboDataset(colNm) → {nexacro.Dataset}
- Description:
Grid의 특정 Column에 바인딩 되어있는 Combo용 Dataset을 가져온다.
- Deprecated:
- 유틸리티를 사용 바랍니다.$grid.getComboDataset
Example
var ds = this.Grid00.getComboDataset("COM_CD");
Parameters:
| Name | Type | Description |
|---|---|---|
colNm |
string | 콤보가 세팅되어있는 칼럼명 |
Returns:
ds - 바인딩 되어있는 Dataset
- Type
- nexacro.Dataset
getCurCellProperty(strBand, cellIdx, row, propId) → {string}
- Description:
Cell의 특정 속성값을 반환
row를 기준으로 실제 표시되는 값을 가져옵니다.
- Deprecated:
- nexacro.Grid 기본함수 getCellPropertyValue를 사용하세요
Example
var option = this.Grid00.getCurCellProperty("body",3,0,"background");
Parameters:
| Name | Type | Description |
|---|---|---|
strBand |
"head" | "body" | "summary" | 속성을 가져올 cell이 속한 밴드 |
cellIdx |
number | 속성을 가져올 Cell의 index |
row |
number | 속성을 가져올 row |
propId |
string | 값을 가져올 속성 명 |
Returns:
특정 cell의 속성 값
- Type
- string
getFitSize(minRow, maxRow) → {Object}
- Description:
Grid의 내용에 딱 맞는 크기를 구한다.
- Deprecated:
- 유틸리티를 사용 바랍니다.$grid.calcFitSize
Example
this.Grid00.getFitSize(3,5);
Parameters:
| Name | Type | Description |
|---|---|---|
minRow |
number | 최소한 표시할 행 수, -1 또는 미입력 시 0과 동일하게 동작 |
maxRow |
number | 최대로 표시할 행 수, -1 또는 미입력시 무제한 |
Returns:
크기 정보
{ width: 100, height: 20 }
- Type
- Object
getHeadText() → {nexacro.BindableValue}
- Description:
Grid 특정 headCell의 text를 가져온다.
- Deprecated:
- 유틸리티를 사용 바랍니다.$grid.getHeadText
Example
var headTextInfo = this.Grid00.getHeadText(3);
var headText = headTextInfo + "";
Returns:
특정 headCell의 text 정보
- Type
- nexacro.BindableValue
getHeadTexts() → {Object}
- Description:
Grid head의 text들을 배열로 가져온다.
- Deprecated:
- 유틸리티를 사용 바랍니다.$grid.getHeadTexts
Example
var headTextObj = this.Grid00.getHeadTexts();
// { length: 3, "상태": 0, "이름": 1, "확인여부": 2, 0:"상태", 1:"이름", 2:"확인여부" }
var arrText = Array.from(headTextObj);
// ["상태","이름","확인여부"]
Returns:
해당 Grid가 가진 모든 headCell의 text 정보
- Type
- Object
getLastTreeChildRow(row) → {number}
- Description:
Tree형태의 Grid에서 특정 row의 마지막 자손 행을 찾는다.
Tree가 아니거나, 자식이 없을 경우 현재 row를 그대로 반환한다.
- Deprecated:
- 유틸리티를 사용 바랍니다.$grid.getLastTreeChildRow
Example
this.Grid00.getLastTreeChildRow(3);
Parameters:
| Name | Type | Description |
|---|---|---|
row |
number | 자손행을 찾을 row (Grid 기준) |
Returns:
마지막 자손 row
- Type
- number
openParentTree(row)
- Description:
Tree형태의 Grid에서 특정 row의 부모 경로를 모두 연다
- Deprecated:
- 유틸리티를 사용 바랍니다.$grid.openParentTree
Example
this.Grid00.openParentTree(10);
Parameters:
| Name | Type | Description |
|---|---|---|
row |
number | tree를 열 row |
saveXML() → {string}
- Description:
Grid의 내용을 현재 보이는 그대로 Dataset용 xml로 만든다.
모든 Column Id는 해당 cell의 cellIndex로 대체됩니다.
이는 동일한 columnId가 바인딩 되어있는 여러 cell이 존재할 경우 충돌을 방지하기 위함입니다.
- Deprecated:
- 유틸리티를 사용 바랍니다.$grid.saveXML
Example
var headTexts = this.Grid00.saveXML();
Returns:
생성된 xml 텍스트
- Type
- string
setComboCodeColumn(colNm, codeColNm)
- Description:
Grid의 특정 Column에 콤보로 바인딩 되어있는 Dataset의 칼럼 중, 실제 값에 해당하는 칼럼을 설정온다.
- Deprecated:
- 유틸리티를 사용 바랍니다.$grid.setComboCodeColumn
Example
this.Grid00.setComboCodeColumn("COM_CD","CD");
Parameters:
| Name | Type | Description |
|---|---|---|
colNm |
string | 콤보가 세팅되어있는 칼럼명, Grid의 column명을 기준으로 한다. |
codeColNm |
string | 실제 값에 해당하는 칼럼명, 콤보에 바인딩 되어있는 Dataset의 칼럼명을 기준으로 한다. |
setComboDataColumn(colNm, codeColNm)
- Description:
Grid의 특정 Column에 콤보로 바인딩 되어있는 Dataset의 칼럼 중, 표시될 값에 해당하는 칼럼을 설정한다.
- Deprecated:
- 유틸리티를 사용 바랍니다.$grid.setComboDataColumn
Example
this.Grid00.setComboDataColumn("COM_CD","CD_NM");
Parameters:
| Name | Type | Description |
|---|---|---|
colNm |
string | 콤보가 세팅되어있는 칼럼명, Grid의 column명을 기준으로 한다. |
codeColNm |
string | 표시될 값에 해당하는 칼럼명, 콤보에 바인딩 되어있는 Dataset의 칼럼명을 기준으로 한다. |
setComboDataset(colNm, ds)
- Description:
Grid의 특정 Column에 Combo용 Dataset을 바인딩.
- Deprecated:
- 유틸리티를 사용 바랍니다.$grid.setComboDataset
Example
this.Grid00.setComboDataset("COM_CD",this.ds_combo);
Parameters:
| Name | Type | Description |
|---|---|---|
colNm |
string | 콤보를 세팅할 칼럼명 |
ds |
nexacro.Dataset | 바인딩할 Dataset |