on 09-26-2006 4:38 PM
Hello
I have a table with a sorted column. When I refresh the screen, I need to refresh the icon from that column. How can I achieve this?
Thank you
What do you mean with "refresh"? Do you mean that after loading new data into the table, there is no sorting anymore?
Armin
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Georgeta,
In TableSorter class add something like this:
public void reset() {
// remove icon of previously sorted column
if (currentlySortedColumn != null && currentlySortedColumn.getHeader() != null)
currentlySortedColumn.getHeader().setImageSource(null);
currentlySortedColumn = null;
}
and call it just after data reloading.
Best regards, Maksim Rashchynski.
Hello Maksim
It solved my problem, very nice.
Thank you
Georgiana
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
91 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.