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

removing sorting icons from Table

Hello,

I am implementing the Table Sorter. Its working fiine. Requirement is not to show the sorting icons, but sorting should work. Does anybody have any idea on how to achieve this?.

Thanks,

Sunita.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

5 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Aug 16, 2007 at 11:21 PM

    Just change the TableSorted class. Or do you already use the new Table.onSort event?

    Armin

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      I don't know what the TableSorter class does exactly, but probably it binds the "sortDirection" to a suitable context attribute which would show the icons again. Maybe you can have a look at your TableSorter implementation and check this.

      Armin

  • Posted on Aug 16, 2007 at 07:55 PM

    Hi Sunita,

    Let me see if I understand your requirements. Do you want to use the Sort functionality but without the icons in the table? For instance, you want to do the table sort when this table is loaded, is it?

    When you are designing the table you can take away with the icons funcionality leaving the table sort functionality.

    Leave the table element without an event associated and mark all columns sortState propertie as not sortable.

    Call the method to sort the table after populate the node.

    Regards.

    Luciano

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Aug 16, 2007 at 07:53 PM

    Hi Sunita,

    I dont think that is possible. Those icons show you if it is sorting ascending or descending. I dont think we can possibly hide them.

    --MLS

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Aug 16, 2007 at 10:28 PM

    Hi Sunita,

    when you write a code in WdDoModifyView()...

    if(!firstTime)

    {

    ....

    }

    do not keep the code in if loop. keep the code as a statements..then you do not see sorting icon ..it works for me!

    Try it

    Regards

    Ravi

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Aug 17, 2007 at 05:35 AM

    Hi Sunita,

    I think you used Table Sorter java class.

    So go to the java class and find the below code.

    // set icon in currently sorted column

    if (currentlySortedColumn.getHeader() != null)

    currentlySortedColumn.getHeader().setImageSource(

    reversable.isReversed()

    ? "Asd.jpg"

    : "dec.jpg");

    so, just remove the .jpg in the coding and put null.

    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.