2018년 3월 21일 수요일

rmate resort

   //정렬 초기화  function resetSort() {
   gridRoot = gridApp.getRoot();   // collection 개체를 가지고 옵니다.   var acoll = gridRoot.getCollection();   // 정렬할 컬럼 정보를 instance로 지정합니다.      var sortField = gridRoot.newClassInstance("SortField");      // 정렬 함수를 instance로 지정합니다.      var sot = gridRoot.newClassInstance("Sort");   // sort Field를 초기화 합니다.
   sot.setFields([]);   if((acoll != null) &&(acoll != "") &&(typeof acoll !="undefined")){
       acoll.setSort(sot);       // collection 정보를 새로고침합니다.       acoll.refresh();      }
}

댓글 없음:

댓글 쓰기