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.
Thanks,