트리그리드 » Api
setitemradioinfo
Description
그리드 아이템의 inputtype이 라디오버튼인 경우 라디오버튼 정보를 동적으로 변경 할 수 있는 API이다.
Parameters
Parameters |
Type |
Description |
nRow |
long |
행 Index |
nColumn |
long |
열 Index |
clsRadioInfo |
class |
라디오버튼 정보를 담고 있는 Class |
Return Value
Remark
** 파라미터 clsRadioInfo 정보
classGridRadioInfo = function()
{
// 라디오버튼 아이템 개수만큼
// classGridRadioItem 정보를 담고 있는 Array
this.arritems = new Array();
// 라디오버튼 동그라미 색상
this.clrellipse = 0x00794D1A;
}
// 라디오버튼 한 아이템 정보
classGridRadioItem = function()
{
strcaption = "";
strselectvalue = "";
}
Example
function btnItemRadioInfo_on_mouseup(objInst)
{
var nRow = 1;
var nColumn = 0;
grd.setiteminputtype(nRow, nColumn, XFD_GRID_INPUTRADIOBUTTON);
var clsRadioInfo = {
clrellipse: 0,
arritems: []
}
clsRadioInfo.arritems.push({
strcaption: "MAN",
strselectvalue: "M"
});
clsRadioInfo.arritems.push({
strcaption: "WOMAN",
strselectvalue: "F"
});
grd.setitemradioinfo(nRow, nColumn, clsRadioInfo);
}
See Also
getitemradioinfo
Viewer Ver.
9.1.1.1
Update Date
20170421