Friday, April 1, 2011

Simulate sort on CellTable as if user clicks it

Hi,

I need to make the user sort on whatever column stick in between
screen refreshes. I already have a way to remember which column was
clicked last and make that part of the URL.

If I know which column I want to sort on and I have all the
Comparators defined for each column as in:
******************
columnSortHandler.setComparator(column1, new Comparator.....);
columnSortHandler.setComparator(column2, new Comparator.....);
******************

Once I reload the data using a ListDataProvider with
listDataProvider.getList().addAll(rows), how do I now simulate the
user clicking on a particular column in ascending or descending order?

Thanks,
Yaakov.

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

No comments:

Post a Comment