Monday, April 25, 2011

Re: GWT 2.2 CellTable sorting

> If you are using a ListDataProvider, you can sort the list manually at any
> time:
> Collections.sort(dataProvider.getList(), myComparator).

hi,
that is what i am doing, no problem sorting result before adding it to
ListDataProvider, but:
i have two columns, and user clicks on a first column header and
sorts. after that user calls new data, i fetch them, sort (by second
column!) and add to ListDataProvider.
table shows data sorted by second column, thats ok, but sort indicator
is still in the header of first column.

or, imagine i want users to sort by clicking buttons (outside table),
not just clicking on headers. i can do that by sorting data provider's
list, and table get sorted, but there's no arrow showing by what
column is table sorted.

--
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.

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate