'Nexacro-Grid/row 관련내용'에 해당되는 글 3건

  1. 2017.07.18 Nexacro.Grid - row별 Height 변경
  2. 2017.07.11 [Nexacro] Grid row이동 및 Cell Focus이동
  3. 2017.06.23 Nexacro.Grid row관련 내용

[ Nexacro.Grid - row별 Height 변경 ]

 

1. 범례 : this.gridId.setRealRowSize(변경row, 변경Height);

2. 예제 : this.gridId.setRealRowSize(3, 20);  //3번째 row의 Height를 20으로 처리

             this.gridId.setRealRowSize(4,   0);  //4번째 row의 Height를 0으로 처리 (안보임)

             this.gridId.setRealRowSize(-1, 25);  //Header Height 조정

 

3. 이슈

    . height를 0 으로 변경해도 focus가 이동됨

    . 그래서 화면에서 갑자기 focus가 살이지는 경우 발생

    . 이로 인해 focus가 이동 또는 row이동 시 

       -> row.height = 0 인 경우는 다음row로 이동하는 logic이 필요

'Nexacro-Grid > row 관련내용' 카테고리의 다른 글

[Nexacro] Grid row이동 및 Cell Focus이동  (0) 2017.07.11
Nexacro.Grid row관련 내용  (0) 2017.06.23
Posted by 농부지기
,

[ [Nexacro] Grid row이동 및 Cell Focus이동 ]

 

var nCellIdx = objGrid.getBindCellIndex("body", column);

objDs.set_rowposition(nRow);
objGrid.setCellPos(nIdx);
objGrid.setFocus();

'Nexacro-Grid > row 관련내용' 카테고리의 다른 글

Nexacro.Grid - row별 Height 변경  (0) 2017.07.18
Nexacro.Grid row관련 내용  (0) 2017.06.23
Posted by 농부지기
,

[ Nexacro.Grid  row관련 내용 ]

 

1. row별 Height를 다르게 설정

   - 범례 : grid.setRealRowSize(row, height);

   - 예    : grid.setRealRowSize(row, 22);

 

   - 주의점 : row의 height를 0으로 설정 시 사용자에게는 보이지 않는다.

                  그런데, focus가 이동되므로   사용자 입장에서는 focus를 잃어 버렸다 생각할 수 있다.

   - 해결방법 : * 가장좋은 방법은 dataset.onrowfoschanged event에서

                         신규row의 height가 0 일 경우 다음row로 이동시키는 방법이다.

                         그런데, 현재(2017.06.23)기준으로 이 부분에 대해서 nexacro 버그가 있다.

                      * 그래서, grid.onselectchanged  event를 설정 하여

                         objDs.set_rowposition(row);  처리를 해준다.

'Nexacro-Grid > row 관련내용' 카테고리의 다른 글

Nexacro.Grid - row별 Height 변경  (0) 2017.07.18
[Nexacro] Grid row이동 및 Cell Focus이동  (0) 2017.07.11
Posted by 농부지기
,