Skip to Content

A problem with TableSorter

Hi,

I'm using the TableSorter utility class and I have a problem with its operation.

I have a table with 10 visible rows and more than 10 entries in the table.

One of the table's columns is date. If I sort the table, I want that the lead selection will be on the first row of the table and not on the row that was selected before the sort action.

Is it possible? (I looked at the TableSorter source file but only one line actually does the sort (dataSource.SortElements(reverseable))

Thanks,

Omri

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • Best Answer
    Posted on Oct 03, 2005 at 08:30 AM

    Hello Omri,

    In your action handler add following code after calling

    wdContext.currentContextElement().getTableSorter().sort(wdEvent, wdContext.nodeXXX());

    ...

    wdContext.nodeXXX().setLeadSelection(0);

    Best regards, Maksim Rashchynski.

    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.