그리드 » Api
  
setcolumnradioinfo
  
Description
그리드 컬럼의 inputtype이 라디오버튼인 경우 동적으로 라디오 버튼 정보를 변경 할 수 있는 API이다.
  
  
Parameters
  
    
      | Parameters | 
      Type | 
      Description | 
    
  
  
        
    
        | 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 btnSetColumnInputType_on_mouseup(objInst)
{
	grd.setcolumninputtype(3, XFD_GRID_INPUTRADIOBUTTON);
	
	var clsRadioInfo = new xclass.classGridRadioInfo;
	clsRadioInfo.clrellipse = factory.rgb(0, 120, 120);
	var clrRadio = new xclass.classGridRadioItem;
	clrRadio.strcaption = "예";
	clrRadio.strselectvalue = "1";
	clsRadioInfo.arritems[0] = clrRadio;
	
	clrRadio = new xclass.classGridRadioItem;
	clrRadio.strcaption = "아니오";
	clrRadio.strselectvalue = "2";
	clsRadioInfo.arritems[1] = clrRadio;
	
	grd.setcolumnradioinfo(3, clsRadioInfo);
	grd.setcolumneditable(3, true);
}
  
See Also
getcolumnradioinfo
  
Viewer Ver.
9.1.1.1
  
Update Date
 20160411