[  ◎ Grid Summary 값 얻기  ]

     

1. 보이는 값 얻기 : grid.getCellText(-2, cellIndex); //Summary일 경우 -2를 입력. 

2. Summary text 속성값 얻기 : grid.getCellProperties("summ", -2, "text");

Posted by 농부지기
,

[  @ Summary 추가 및 삭제  ]     

 

1. summary 추가 방법
    - 정의 : appendContentsRow()함수로 summary 영역을 추가 할 수 있음
             여러번 하면 밑으로 추가 됨
    - 문법 : grdName.appendContentsRow("summ");

2. 값을 얻고 싶을 경우
    - 문법 : grdName.getCellText(-2, cellIndex); //Summary일 경우 -2를 입력.
    - 인자 : 첫번재 인자가 -2일 경우  Summary영역으로 인식 한다.

Posted by 농부지기
,

[  ◎ Nexacro Grid subsum 합계 처리  ]     

 

 

expr:getAvg('INC_RT + nColSeq',
            getGroupRangeStart(currow),getGroupRangeStart(currow)+getGroupRangeCount(currow))

Posted by 농부지기
,

[  @ Nexacro Grid Body 추가  ]     

 

1. Body 추가 방법
    - 정의 : insertContentsRow()함수 사용
             두번째 인자에 0 이면 첫번째 라인에 한줄이 추가  되고, 1로 하면 두번째 라인에 한줄 추가 됨
    - gridName.insertContentsRow("body", 1, true);
    - 참고 : 추가된 line은  실재로 인식은 line으로 인식하지 않고, 1줄로 제어 된다.
             그래서 추가된 line은  index(Cell index)로 순서가 계속 매겨지고, 관리할 수 있다.

Posted by 농부지기
,

[  ◎ Grid 컬럼값이 많을 경우 Height자동 조절 ]     

 

 

 
 


*. Grid조회 시  컬럼값이 여러줄 일 경우 height 자동 조정하기
 
1. Grid.property.autosizingtype = row
                .cellsizingtype = row
                .extendsizetype = row

2.  Grid.Grid Contents Editor.autosizerow = limitmin
     Grid.Grid Contents Editor.wordwrap = word

'Nexacro-Grid > Grid' 카테고리의 다른 글

Nexacro Grid - subsum 합계 처리  (0) 2017.01.22
Nexacro Grid -Body 추가  (0) 2017.01.22
Nexacro Grid - 컬럼 fixed  (0) 2017.01.22
Nexacro Grid - Header Text에 enter key 넣기  (0) 2017.01.22
Nexacro Grid - Column Size 처리  (0) 2017.01.22
Posted by 농부지기
,

    [  ◎ Grid 컬럼 fixed ]     

 

 

 
 


tab.tbDsAttr.divData.grdCurrData.setFormatColProperty(0, "band", "left");

만약, 2개 컬럼을 고정하고 싶을 경우에는 연속으로 앞쪽부터 2개 다 해줘야 됨
tab.tbDsAttr.divData.grdCurrData.setFormatColProperty(0, "band", "left");

tab.tbDsAttr.divData.grdCurrData.setFormatColProperty(1, "band", "left

Posted by 농부지기
,

[  ◎  Grid Header Text에 enter key 넣기 ]

 

  gridName.setCellProperty('Head', n1, 'text', '품질표준\n환산점수');

  grid에서 직접 넣으면 안되고,   script에서 넣어줘야 가능

  heaer 속성중
     Action.displaytype : decoratetext

   을 하면   \n 값이 적용 됨

 

Posted by 농부지기
,

[  @ Nexacro Grid Column Size 처리  ]     

 

1. SIZE 변경 시 : grid.setFormatColProperty(nIdx,"size",0);

2. SIZE 값 얻기 :  Grid00.getFormatColProperty(0,"size");

 

Posted by 농부지기
,

◎ Nexacro Grid.event 추가 및 삭제   ]    

 


// 1. event 를 script에서 추가하기
    grdName.onheadclick.setHandler(
event_onheadlclick);

    
function event_onheadlclick(obj:Grid, e:GridClickEventInfo)
    {

            script 기술

    }

 

   // 2. evetn를 script에서 삭제 하기
   grdName.onheadclick.removeHandler(grdName.onheadclick.event_onheadlclick);
 

Posted by 농부지기
,

[  ◎ Grid 컬럼 mouse로 조정하기 ]

 

 

 

 
 

grid.autosizingtype = row

Posted by 농부지기
,