[ 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 |