그리드 » Api

getiteminputtype

Description

그리드 특정 아이템의 input type값을 가져오는 API이다.

Parameters

Parameters Type Description
nRow short 로우 인덱스
nColumn short 컬럼 인덱스

Return Value

Type Description
short nInputType 상수 (*Remark 참조)

Remark

**nInputType 상수

XFD_GRID_INPUTEDITBOX = 0
XFD_GRID_INPUTCHECKBOX = 1
XFD_GRID_INPUTCOMBOBOX = 2
XFD_GRID_INPUTCALENDAR = 3
XFD_GRID_INPUTRADIOBUTTON = 4
XFD_GRID_INPUTBARGAUGE = 5
XFD_GRID_INPUTSPIN = 6
XFD_GRID_INPUTHTML = 7
XFD_GRID_INPUTCHART = 8
XFD_GRID_INPUTBUTTON = 9
XFD_GRID_INPUTIMAGE = 10

+ 주의사항 +

  item의 속성과 column 속성은 차이가 있다. 우리가 흔히 사용하는 그리드열 속성 등록창은 컬럼에 속성을 지정하는 것이다. 0번째 컬럼에 속성을 지정하더라도 0번째 컬럼에 속해 있는 아이템에 일일이 속성이 지정된 것이 아니라 아이템을 싸고 있는 컬럼이라는 대표 속성에 지정한 것이다. 그러므로 item에 어떤 속성을 가져올때는 그 item에 속성을 따로 지정했는가부터 확인해야 한다. 설정하지 않은 경우 -1이 리턴된다.

Example

function btn_on_mouseup() { // 특정 아이템 0,1의 inputtype을 calendar로 설정 var bResult = grd.setiteminputtype(0, 1, 3); if(bResult) { // 특정 아이템 0,1의 inputtype을 가져온다. var nType = grd.getiteminputtype(0, 1); if(nType < 0) { screen.alert("그리드 아이템(0, 1)에 inputtype이 설정되어 있지 않습니다."); } else { if(nType == 0) { screen.alert("그리드 아이템(0, 1)의 inputtype : editbox"); } else if(nType == 1) { screen.alert("그리드 아이템(0, 1)의 inputtype : checkbox"); } else if(nType == 2) { screen.alert("그리드 아이템(0, 1)의 inputtype : combobox"); } else if(nType == 3) { screen.alert("그리드 아이템(0, 1)의 inputtype : calendar"); } } } }

See Also

setiteminputtype

Viewer Ver.

9.1.1.1

Update Date

20181030