Table Sorter
Hi,
I have implemented table sorter functionality using TableSorter.java class and works perfectly however when user applies a sort and navigates back to another screen and returns back the table sorter images still remains which is creating a confusion to the user.
Do we have a way to reset the sort image back to blank on the table header ?
Thanks,
Vipin.
Tags:
Tobias Hamdorf replied
Hi Vipin,
you can add this code to wdDoModifyView to reset the sort state:
IWDTableColumn column = (IWDTableColumn) view.getElement("ColumnId");
column.setSortState(WDTableColumnSortDirection.NONE);
Be aware that you have to build in a check if you come back from navigation. Otherwise you will reset it on every round trip and you will never have a sort state again.
Regards,
Tobias