1. Grid.각 Row별 Height 자동 조정 (값에 따라서 Height자동 조정)

    - Grid.속성 : autosizingtype = row

                    cellsizingtype   = none

                    extendsizetype = row

    - Grid.Cell 속성 : display = textareacontrol

                          edittype = textarea

                          wordWrap = char

                          textareascrolltype = vertical

                          autosizerow = limitmin   (text가 한줄일 경우 height의 최소 size 처리 속성)

 

 

 

 

 

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

Nexacro.Grid - cell 좌표  (3) 2018.01.16
Nexacro-Grid. format  (0) 2017.08.18
nexacro.Grid cell drag & drop  (0) 2017.03.30
Grid.sort 개발중  (0) 2017.02.24
Nexacro Grid - 한컬럼에 여러줄 보여주기  (0) 2017.01.22
Posted by 농부지기
,

[ Nexacro Grid-combo 선택 시 바로 값 반영하기 ]

 

1. 보통 Nexacro는 Grid에서 combo를 선택하면 바로 값이 dataset에 반영이 되지 않는다.

   셀을 이동하거나, grid에서 focus가 빠져 나오게 되면 combo에 선택된 값이 dataset에 반영 된다.

 

2. Nexacro Grid-combo 선택 시 바로 값 반영하기

   - Grid.속성.autoupdatetype=comboselect   를 선택 하면 바로 combo를 선택과 동시에 바로 dataset에 반영 된다.

   - 참고, 보통인 경우에는 위 속성이 필요 하지 않다.

     그런데, 선택된 combo값에 의해서 다른 속성들이 변경 되어야 하는 경우에는 꼭 필요하다.

     (사용자는 combo를 선택 했는데.. 이 값에 의해서 컬럼들이 변경이 되어야 하는데 변경 되지 않고

       cell을 이용해야만 된다면 사용자는 complain 을 표출하게 된다.)

Posted by 농부지기
,

[ Grid-cell 한번클릭 시 바로 focus위치 ]

 

1. 참고 : Grid 기본 속성이 cell을 두번 클릭 해서 해당 cell에 focus가 위치 되고 입력가능 상태가 된다.

 

2. Grid에 Cell을 한번클릭으로 focus가 위치 되고 입력가능상태로 하기 위해서는

   Grid.속성.autoenter=select   로 설정하면 됨

 

 

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

Nexacro.Grid Scroll 처리  (0) 2017.06.22
Nexacro.Grid - scrollbar 관리  (0) 2017.02.09
Posted by 농부지기
,

[ Nexacro-Grid 특정 Cell에 Mouseover시 컬러 변경 ]

 

1. 정의 : Grid에서 특정 Cell에 Mouseover시 font color를 Blue 및 font Underline처리 하기

            다시 Mouse가 빠져나오면 원래 font color로 변경 되고 Underline도 살아지게 처리

 

2. 방법 :

   a. css 추가

.Grid .body .row .cell.webLink[status=mouseover]
{
background : #f6f6f6;
-nexa-text-decoration : underline;
color : blue;

}

   b. Grid.cell속성.Information > cssClass 에 'webLink' 라고 주면 됨

Posted by 농부지기
,

[ Nexacro Grid - Cell에 image보여주기 ]

 

1. displaytype=imagecontrol

2. textexpr에

   expr:Column0=="A"?"theme://images/chk_WF_Box_DS.png":"theme://images/img_WF_Treecollapse.png"

Posted by 농부지기
,

[ Nexacro.Grid Expr 목록 보기 ]

 

1. 정의

    . 헉스 이런게 있다니

      Grid의 컬럼에 가지고 있는 expr 목록은 hashmap으로 가지고 있었군.

    . expr은  parsing되어  함수처럼 관리 하고 있음.

 

2. Grid Expr 목록 보기

    . 예제

     

      . this.grid_name._exprcache['cell에 가지고 있는 expr실재값']

      . _exprcache[] : hashmap에서 expr를 가지고 있음

      . 근데 언제 grid._exprcache[]이 hashmap에 expr값이 저장 되는지 모르겠다. ㅋㅋ

        \nexacro14lib/component/Grid/Grid.js  또는 GridInfo.js  이곳에서 하는 듯

 

3. Expr로 적용되었던 문장의 결과 값을 보는 방법

   . 예제 : edittype 에 대한 expr 결과 보기

   

 

4. grid._exprcache[]이 hashmap 만드는 소스

   

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

Nexacro.Grid - Expr 사용 기본문법  (0) 2017.06.30
Posted by 농부지기
,

[ Nexacro.Grid - cell 좌표 ]

 

1. 정의 : grid에서 특정cell의 expandimage등을 클릭하면 필요에 따라 popupdiv를 띄우게 된다.

             이때 클릭한 cell의 좌표를 찾아서 popupdiv를 띄워 줘야 된다.

 

2. 예)

var nHeadSize = obj.getFormatRowSize(-1);   //head height 구하기

 

var arrCellRect = obj.getCellRect(e.col, e.cell);   //grid col, cell 위치 구하기
var nDivX = system.clientToScreenX(obj, arrCellRect.left) - system.clientToScreenX(application.mainframe, 0);
var nDivY = system.clientToScreenY(obj, arrCellRect.bottom) - system.clientToScreenY(application.mainframe, 0);

 this.popup_Filter.trackPopup(nDivX, nDivY);   //grid 클릭한 col, cell 에 popup창 띄우기

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

Nexacro.Grid - 간단 Tip 목록  (0) 2019.05.03
Nexacro-Grid. format  (0) 2017.08.18
nexacro.Grid cell drag & drop  (0) 2017.03.30
Grid.sort 개발중  (0) 2017.02.24
Nexacro Grid - 한컬럼에 여러줄 보여주기  (0) 2017.01.22
Posted by 농부지기
,

[ Nexacro.Grid.Head 컬럼 Fixed 처리 ]

 

1. Grid에서 현재 Fixed cell정보 얻기

    grid.getFormatColProperty(cellIdx, "band");

 

2. Grid에서 특정Cell에 Fixed처리하기

    grid.setFormatColProperty(cellIdx, "band", "left");

    grid.setFormatColProperty(cellIdx, "band", "right");

 

3. Grid에서 특정Cell에 Fixed 해제하기

    grid.setFormatColProperty(cellIdx, "band", "body");

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

Nexacro.Grid - grid Header Merge  (0) 2017.01.28
Posted by 농부지기
,

[ Nexacro-Grid. format ]

 

1. 정의

    - Grid를 개발하다 보면 dynamic하고 컬럼 추가/삭제를 하는 경우가 발생한다.

       이때 화면 open시점에 적용되어 가지고 있던 grid format을 알고 싶은 경우에 얻을 수 있다.

 

2. 예제 2)

    - 정의 : grid 현재 format 얻기

    - this.grd_name.getCurFormatString(true);

 

3. 응용예제)

    - 화면이 open될때  공통함수인 gfn_formOnload()함수에서  화면에 Grid 모두

       초기 format을 가지고 있다가 개발자는 언제든지 그 값을 가져다 사용할 수 도 있다.

    - 즉, gfn_formOnload()에서 모든 재귀 호출을 통해 모든component를 찾아 다니면서

      grid인 경우  this.grd_name.orgformatstring = objTarget.formats;

예제 1)

    - 정의 : grid 초기 format 얻기

    - var sOrgGridFormat = this.grd_name.orgformatstring;

    ....

    - var this.grd_name.set_formats(sOrgGridFormat );

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

Nexacro.Grid - 간단 Tip 목록  (0) 2019.05.03
Nexacro.Grid - cell 좌표  (3) 2018.01.16
nexacro.Grid cell drag & drop  (0) 2017.03.30
Grid.sort 개발중  (0) 2017.02.24
Nexacro Grid - 한컬럼에 여러줄 보여주기  (0) 2017.01.22
Posted by 농부지기
,

[ 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 농부지기
,