0 Replies Latest reply on May 10, 2013 3:47 AM by toni pérez

    Reset built-in sorting not working

    toni pérez Newbie

      Hi,

       

      I'm using the richfaces 4.3.0 version and I'm trying to reset the built-in Sorting.

       

      I'm using the next code:

       

       

      private SortOrder sortOrder;
      
      public void limpiarOrdenDatosGrid(String identificador) {
           sortOrder = SortOrder.unsorted;
           UIExtendedDataTable table = (UIExtendedDataTable)FacesContext.getCurrentInstance().getViewRoot().findComponent("Formulario:"+identificador);
           for (UIComponent column : table.getChildren()) {
                (UIColumn) column).setSortOrder(sortOrder);
           }
      }
      

       

      The data go back to their original order, but the arrow does not return to its original state.

      example_1.png

      Thanks,