cancel
Showing results for 
Search instead for 
Did you mean: 

Table Sorter

vipin_v2
Participant
0 Kudos

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.

Accepted Solutions (1)

Accepted Solutions (1)

former_member191044
Active Contributor
0 Kudos

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

Answers (0)