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