[ [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 - Expr 사용 기본문법]

 

1. 함수 호출

    - 예) comp.parent.fn_test(currow);

    - comp            : grid를 의미 (함수 호출 시 반드시 comp. 를 맨 앞에 기술해야 됨)

    - comp.parent : grid의 parent함수를 호출

    - 만약, Grid가 div_01  위에 존재 시  parent를 두번 붙어 줘야 됨

       예) comp.parent.parent.fn_test(currow); 

 

2. dataset함수 사용하기

    - 예) dataset.getRowType(currow);

    - dataset함수를 사용할 때는 'dataset.' 을 명시적으로 붙어줘야 됨

 

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

Nexacro.Grid Expr 목록 보기  (3) 2018.02.13
Posted by 농부지기
,

[ Nexacro.Tree  개발방법 ]

 

1. Tree에서 check box 다루기

    1. checkbox와 column binding

        예) Grid.Column속성.GridTree.treecheck.속성 : bind:chk

        설명) treecheck속성에  컬럼과 binding처리 한다.

 

    2. Tree에 checkbox 보여주기, 안보여주기

        속성)Grid.속성.treeusecheckbox = true/false;

 

    3. 최하위 node만 checkbox보여주기

        : 이 기능은 안됨.

          checkbox를 보여주게 되면 모든 level에 checkbox가 보여줌.

 

 

9. Tree관련 api

    1. grid.getTreeParentRow(nRow)

    2. grid.getTreeChildCount(nRow)

    3. grid.getTreeChildRow(nRow, n)

    4. grid.getTreeSiblingRow(nRow, n)

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

Nexacro.Grid-Tree기능처럼 만들기  (0) 2017.02.09
Nexacro.Grid-tree 한줄삽입시 오류보정  (0) 2017.02.09
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 농부지기
,

[ Nexacro.Grid  Scroll 처리 ]

 

1. 상,하단 H Scroll을 동시에 적용하기

     예)  상단 Grid - 좌/우 Scroll 존재

           하단 Grid - 좌/우 Scroll 존재

          -------------------

          위와 같은 상황에서   상단 Scroll을 좌/우로 변경 시   하단 Scroll도 동일한 위치로 동시에 이동되기를 원할 경우

     방법) 상단, 하단 Grid의  onhscroll   Event생성

              ->  각각 아래 Script 기술

              -> 상단 Grid의 onhscroll Event

                   this.하단Grid.set_enableevent(false);
                   this.하단Grid.hscrollbar.set_pos(obj.hscrollbar.pos);
                   this.하단Grid.set_enableevent(true);

 

              -> 하단 Grid의 onhscroll Event

                   this.상단Grid.set_enableevent(false);
                   this.상단Grid.hscrollbar.set_pos(obj.hscrollbar.pos);
                   this.상단Grid.set_enableevent(true);

'Nexacro-Grid > 자체속성' 카테고리의 다른 글

Naxacro Grid-cell 한번클릭 시 바로 focus위치  (0) 2019.04.24
Nexacro.Grid - scrollbar 관리  (0) 2017.02.09
Posted by 농부지기
,
[ Nexacro.Grid-Cell Merge ]

1. 정의 : Grid Cell Merge는 좌/우,  위/아래  로 해서 Merge를 할 수 있다.

2. 이슈
   . Grid cell 속성에 subpress에 값이 정의 되어 있으면 setFakeMerge()함수가 정상적으로
     수행되지 않는다.

3. Merge 해제
   . 한번더 수행 하면 해지 된다.

4. Merge수행 예제

   


Posted by 농부지기
,
[ nexacro.Grid cell drag & drop ]

1. 정의 : Nexacro Grid 에서 Multi cell drag & drop  기능 구현
          (무지 힘들었음 ㅋㅋ)
          (보시고 괜찬으면 답글좀 ^^)

2. 이슈 
   a. drop 되는 위치에서 row, cell의 범위가 넘어가는 경우 존재.
   b. drag가 되고 이동 시 drag된 row범위에 drop 될 경우 이슈. 
      (이 부분은 불가. 테스트 해보면 느껴짐)


3. script   
   


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

Nexacro.Grid - cell 좌표  (3) 2018.01.16
Nexacro-Grid. format  (0) 2017.08.18
Grid.sort 개발중  (0) 2017.02.24
Nexacro Grid - 한컬럼에 여러줄 보여주기  (0) 2017.01.22
Nexacro Grid -Combo Filter (필터) 처리  (0) 2017.01.22
Posted by 농부지기
,

var HeadCol = obj.GetCellProp("Head",nCell,"col");


var BodyColId = obj.GetCellProp("Body", HeadCol,"Colid");

if(sSortFlag == true)

{

sSortFlag = false;

} else {

sSortFlag = true;

}

DS_List_copy.Sort(BodyColId , sSortFlag);



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

Nexacro-Grid. format  (0) 2017.08.18
nexacro.Grid cell drag & drop  (0) 2017.03.30
Nexacro Grid - 한컬럼에 여러줄 보여주기  (0) 2017.01.22
Nexacro Grid -Combo Filter (필터) 처리  (0) 2017.01.22
Nexacro Grid - ToolTip  (0) 2017.01.22
Posted by 농부지기
,

[ Nexacro.Grid-Tree기능처럼 만들기 ]


   1. 정의 : 특정컬럼을 눌렀을 경우 Tree처럼 만들기

           단, Tobe의 Tree기능을 사용하지 않음

   2. 방법 - DatasetTree_Expand_yn 컬럼 추가

         - Dataset을 조회 시 Tree_Expand_yn = 'Y'로 모두 조회 한다.

         - Grid.에서 Cell을 클릭 하면 Tree처럼 감출 리스트에 > Tree_Expand_yn = 'N' 로 Set

         - Dataset.filter("Tree_Expand_yn=='Y'")와 같이 한다.

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

Nexacro.Tree 개발방법  (0) 2017.06.26
Nexacro.Grid-tree 한줄삽입시 오류보정  (0) 2017.02.09
Posted by 농부지기
,

[ Nexacro.Grid-tree 한줄삽입시 오류보정 ]



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

Nexacro.Tree 개발방법  (0) 2017.06.26
Nexacro.Grid-Tree기능처럼 만들기  (0) 2017.02.09
Posted by 농부지기
,