Skip to content
Snippets Groups Projects
Commit c4991a51 authored by uhensler's avatar uhensler
Browse files

OO-4630: Sort table date after a filter was applied

parent e269fca9
No related branches found
No related tags found
No related merge requests found
......@@ -752,6 +752,7 @@ public class FlexiTableElementImpl extends FormItemImpl implements FlexiTableEle
return conditionalQueries;
}
@Override
public SortKey[] getOrderBy() {
return orderBy;
}
......@@ -1239,6 +1240,11 @@ public class FlexiTableElementImpl extends FormItemImpl implements FlexiTableEle
currentPage = 0;
doUnSelectAll();
((FilterableFlexiTableModel)dataModel).filter(getQuickSearchString(), selectedFilters);
if(dataModel instanceof SortableFlexiTableDataModel) {
if(orderBy != null && orderBy.length > 0) {
((SortableFlexiTableDataModel<?>)dataModel).sort(orderBy[0]);
}
}
} else if(dataSource != null) {
rowCount = -1;
currentPage = 0;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment