그리드 » Api

getitemradioinfo

Description

그리드 아이템의 inputtype이 라디오버튼인 경우 해당 정보를 Class형태로 반환하는 API이다.

Parameters

Parameters Type Description
nRow long 행 Index
nColumn long 열 Index

Return Value

Type Description
class 라디오버튼 정보를 담고 있는 Class

Remark

** 반환되는 클래스 정보

classGridRadioInfo = function() 
{
	// 라디오버튼 아이템 개수만큼
	// classGridRadioItem 정보를 담고 있는 Array
	this.arritems = new Array();
	// 라디오버튼 동그라미 색상
	this.clrellipse = 0x00794D1A;
}

// 라디오버튼 한 아이템 정보
classGridRadioItem = function() 
{
	strcaption = "";
	strselectvalue = "";
}

Example

function btnItemRadioInfo_on_mouseup(objInst) { var nSelectRow = grd.getselectrow(); var nSelectCol = grd.getselectcolumn(); if(grd.getiteminputtype(nSelectRow, nSelectCol) != XFD_GRID_INPUTRADIOBUTTON) { factory.consoleprint("해당아이템은 라디오버튼이 아닙니다."); return; } var clrRadioInfo = grd.getitemradioinfo(nSelectRow, nSelectCol); if(clrRadioInfo == null) { return; } for(var nRadio = 0;nRadio < clrRadioInfo.arritems.length;nRadio++) { var clsRadioItem = clrRadioInfo.arritems[nRadio]; if(clsRadioItem == null) { continue; } factory.consoleprint("caption : " + clsRadioItem.strcaption); factory.consoleprint("selectvalue : " + clsRadioItem.strselectvalue); factory.consoleprint("--------------"); } }

See Also

setitemradioinfo

Viewer Ver.

9.1.1.1

Update Date

20170421