on 07-15-2015 4:25 PM
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.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
10 | |
9 | |
8 | |
6 | |
6 | |
6 | |
5 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.