Skip to Content
author's profile photo Former Member
Former Member

refresh icon in sorted column

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

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Sep 26, 2006 at 03:58 PM

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

    Armin

    Add a comment
    10|10000 characters needed characters exceeded

    • 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.

  • author's profile photo Former Member
    Former Member
    Posted on Oct 01, 2006 at 02:19 PM

    Hello Maksim

    It solved my problem, very nice.

    Thank you

    Georgiana

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.