on 04-29-2009 11:51 PM
Hello,
I'm applying the TableSorter.java class to my table columns for sorting as/descending.
The functionality I'm trying to achieve is to sort all values that equal null to the top of the table.
Is there a way to do this?? Currently the code exits out at this line:
if (elementComparator == null)
{ //not a sortable column
column.setSortState(WDTableColumnSortDirection.NOT_SORTABLE);
return; // exits out here
}
How can I tackle this??
EDIT
I just put in values into the entire column, but its still throwing a null pointer exception?
/EDIT
Thanks
M
PS. My sortable table column doesn't appear with the Sort By Ascending / Descending icon, it just has a pointer hand on hover....how can I have the icon please?
Edited by: Marshall Mathers on Apr 30, 2009 1:04 AM
Sort works now, I had downloaded the TableSorter.java file from the code snippets area in the wiki which has bugs.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
10 | |
10 | |
10 | |
7 | |
6 | |
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.