728x90
반응형

 

✅ 그리드(Grid)

  • 데이터셋의 내용을 격자 모양으로 표현하는 컴포넌트
  • 항상 데이터셋과 바인딩해서 사용하며 한쪽의 데이터가 변경되면 다른 쪽도 변경됨

 

✅ 셀(Cell)

  • 그리드가 출력되는 최소 단위

 
 
 

🔸setCellProperty(sBand, nColIdx, sPropID, sValue)

  • 해당 셀 속성을 설정하는 메소드
//head 영역 텍스트를 hello로 변경
this.컴포넌트ID.setCellProperty("head", 2, "text", "hello");		

//body 영역 데이터 표기 타입을 number로 변경
this.컴포넌트ID.setCellProperty("body", 2, "displaytype", "number"); 

//summary 영역 expr(계산식) 변경
this.컴포넌트ID.setCellProperty("summary", 2, "expr", "Math.round(dataset.getSum(\"컬럼명\"))");

 
 

🔸setFormatColProperty(nColIdx, sPropID, nColSize)

  • 해당 컬럼 영역의 속성을 설정하는 메소드
//그리드의 특정 셀 숨기기
this.컴포넌트ID.setFormatProperty(2, "size", 0);

//그리드의 특정 셀 나타내기
this.컴포넌트ID.setFormatProperty(2, "size", 150);

 
 
 
 
 
 
 
 

728x90
반응형

+ Recent posts