on 07-13-2007 1:44 PM
Hi,
Could anyone help with table sorter implementation?
It is working fine for me if I click on a table title.
The problem is: I need a default sort functionality as well. i.e on first display the table should be automatically sorted as per "Date" column (without a click on the column heading).
I am using TableSorter.java for NW2004 (Not 2004S).
Many thanks,
Anagha Jawalekar
Hi Peter,
I have tried it before your post, yes this is the solution.
Thanks,
Anagha
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi
Sort the node where from you are taking data for displaying those in the table. I think the following code sample might help you where I sort the node Point by StartDate.
wdContext.nodePoint().sortElements(new Comparator() {public int compare(Object o1, Object o2)
{int i = 0;IPublicTpcalender.IPointElement e1 = ((IPublicTpcalender.IPointElement) o1); IPublicTpcalender.IPointElement e2 = ((IPublicTpcalender.IPointElement) o2);
i = e2.getStartDate().compareToIgnoreCase(e1.getStartDate());
return i; } //compare
});
regards
Sunit
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
85 | |
10 | |
10 | |
9 | |
6 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.