cancel
Showing results for 
Search instead for 
Did you mean: 

refresh icon in sorted column

Former Member
0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

What do you mean with "refresh"? Do you mean that after loading new data into the table, there is no sorting anymore?

Armin

Former Member
0 Kudos

After loading new data, I do not need the sort icon to show up in the column.

Former Member
0 Kudos

Which release are you on, NW04 or NW04s?

Armin

Former Member
0 Kudos

I am working on NW04.

former_member182372
Active Contributor
0 Kudos

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.

Answers (1)

Answers (1)

Former Member
0 Kudos

Hello Maksim

It solved my problem, very nice.

Thank you

Georgiana