NEXACRO

Nexacro 17 동적 그리드 컬럼 추가

소확Jeong 2025. 6. 25. 11:56
반응형

✅ Add Dynamic Grid Column


var nColIdx = this.grd_type02.appendContentsCol("head");
this.grd_type02.setCellProperty ( "head" , nColIdx, "text", "202501");
this.grd_type02.setFormatColProperty ( nColIdx, "SIZE", 120);
this.grd_type02.setCellProperty ( "body" , nColIdx, "text", "bind:AMT_202501");
this.grd_type02.setCellProperty ( "body" , nColIdx, "textAlign", "right");
this.grd_type02.setCellProperty ( "Summary" , nColIdx, "text", "expr:dataset.getSum('AMT_202501')");
this.grd_type02.setCellProperty ( "Summary" , nColIdx, "displaytype", "number");
this.grd_type02.setCellProperty ( "Summary" , nColIdx, "textAlign", "right");

// cssclass 동적으로 
this.grd_type02.setCellProperty ( "body" , nColIdx, "cssclass", "expr:dataset.getColumn(currow,'GUBUN')=='잔액'?'greyRed':''");

 

반응형