Package org.richfaces.event.sort

Examples of org.richfaces.event.sort.SortEvent


        Column column = (Column)grid.getChildren().get(sortColumn);
       
        if(column.isSortable()){
     
          sorted = true;
          SortEvent sortEvent = new SortEvent(grid,sortColumn, grid.getRows(), sortDataIndex);
         
          sortEvent.setAttribute(ScrollableDataTableUtils.CLIENT_ROW_KEY,sortStartRow);
         
          if (ajaxContext.isAjaxRequest()) {
            sortEvent.setAttribute(PARTIAL_UPDATE, Boolean.TRUE);
            sortEvent.setAttribute(UPDATE_HEADER, Boolean.TRUE);
          }
         
         
          sortEvent.queue();
       
      }
     
     
      if(parameters.containsKey(clientId + ":scroll") && !sorted){
View Full Code Here


    getFacesContext().renderResponse();
  }
 
  public void processSortingChange(FacesEvent event){
   
    SortEvent e = (SortEvent)event;
   
    getSortListener().processSort(e);
 
    setFirst(e.getFirst());
    reqRowsCount = e.getRows();
   
   
    resetDataModel();
   
    getFacesContext().renderResponse();
View Full Code Here

        Column column = (Column)grid.getChildren().get(sortColumn);
       
        if(column.isSortable()){
     
          sorted = true;
          SortEvent sortEvent = new SortEvent(grid,sortColumn, grid.getRows(), sortDataIndex);
         
          sortEvent.setAttribute(ScrollableDataTableUtils.CLIENT_ROW_KEY,sortStartRow);
         
          if (ajaxContext.isAjaxRequest()) {
            sortEvent.setAttribute(PARTIAL_UPDATE, Boolean.TRUE);
            sortEvent.setAttribute(UPDATE_HEADER, Boolean.TRUE);
          }
         
         
          sortEvent.queue();
       
      }
     
     
      if(parameters.containsKey(clientId + ":scroll") && !sorted){
View Full Code Here

TOP

Related Classes of org.richfaces.event.sort.SortEvent

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.