Skip to Content
avatar image
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 comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

5 Answers

  • Best Answer
    avatar image
    Former Member
    Aug 16, 2007 at 11:21 PM

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

    Armin

    Add 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

  • 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 comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    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 comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    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 comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    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 comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Hi sunita,

      for sorting you are to include TableSorter java class.

      just open the class by using notepad and change code as i mentioned in my previous reply.

      I have implemented this already.