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