cancel
Showing results for 
Search instead for 
Did you mean: 

A problem with TableSorter

former_member182374
Active Contributor
0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

former_member182372
Active Contributor
0 Kudos

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.

former_member182374
Active Contributor
0 Kudos

Thanks Maskim, it solved the problem.

Omri

Answers (0)