on 10-02-2005 3:43 PM
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
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.