그리드 필터 컬럼별 옵션 가이드
그리드 필터 관련 컬럼별 옵션에 대한 예시 화면이다.
관련 데이터부 속성으로 filterable이 있다.
관련 API로 getcolumnfilterable, setcolumnfilterable, releasecolumnfilter가 있다.
예시
템플릿 위치: /HTML5/COMPONENT/GRID/grid_filter_column
템플릿 파일
화면 스크립트
// "setcolumnfilterable" 버튼 이벤트
function btn_setcolumnfilterable_on_click(objInst)
{
// 1번째 컬럼 필터 가능 여부 토글 처리
this.grd.setcolumnfilterable(1, !this.grd.getcolumnfilterable(1));
// 1번째 컬럼 필터 가능 여부 정보 기준으로 헤더 텍스트 설정
if (this.grd.getcolumnfilterable(1)) {
this.grd.setheadertext(1, 1, "true");
}
else {
this.grd.setheadertext(1, 1, "false");
}
}
// "releasecolumnfilter" 버튼 이벤트
function btn_releasecolumnfilter_on_click(objInst)
{
// 0번째 컬럼 필터 정보 초기화
this.grd.releasecolumnfilter(0);
}