이 문서는 읽기 전용입니다. 원본을 볼 수는 있지만 바꿀 수는 없습니다. 문제가 있다고 생각하면 관리자에게 문의하세요. ====== 트리그리드 정렬 대상 행 가이드 ====== 트리 그리드의 정렬 대상 행 관련 기능에 대한 예시 화면이다. 트리 그리드의 행은 자식인 있는 행과 자식이 없는 행(Leaf-Row)로 구분된다. 트리 그리드의 정렬시 전체 행을 Depth 정보를 기준으로 모두 정렬을 수행할 지, 자식인 없는 행만 정렬을 수행할 지 지정 기능을 제공한다. 관련 속성으로 treegrid_sort_target이 있다. 관련 API로 get/settreegridsorttarget, get/settreegridsorttarget이 있다. 관련 실행파라미터로 TREEGRID_SORT_TARGET이 있다. ===== 예시 ===== 템플릿 위치: /HTML5/COMPONENT/GRID/grid_sort_treegrid 템플릿 파일 * [[xf5projecthome>template/screen/HTML5/COMPONENT/GRID/grid_sort_treegrid.xml|grid_sort_treegrid.xml]] * [[xf5projecthome>template/screen/HTML5/COMPONENT/GRID/grid_sort_treegrid.js|grid_sort_treegrid.js]] * [[xf5projecthome>template/template.html?xframe_screen_url=/HTML5/COMPONENT/GRID/grid_sort_treegrid|새창으로 실행]] <php> echo '<html>'; echo '<iframe src="'; echo $conf['plugin']['xf5']['xf5projecthome'], 'template/template.html?'; echo 'xframe_screen_url=/HTML5/COMPONENT/GRID/grid_sort_treegrid"'; echo ' class="_xf5_iframe"'; echo ' style="'; echo $conf['plugin']['xf5']['xf5iframestyle']; echo '">'; echo '</iframe>'; echo '</html>'; </php> ==== 화면 스크립트 ==== <sxh javascript> // "Leaf Row" 라디오버튼 이벤트 function rdoLeafRow_on_click(objInst, bPrevCheckState, bCurCheckState) { this.grdList.settreegridsorttarget(1); } // "All Row" 라디오버튼 이벤트 function rdoAllRow_on_click(objInst, bPrevCheckState, bCurCheckState) { this.grdList.settreegridsorttarget(2); } </sxh> guide/component/grid/grid_sort_treegrid.txt 마지막으로 수정됨: 2023/12/13 17:03저자 127.0.0.1