If you are using an AsyncDataProvider, call CellTable#getColumnSortList() when you refresh the data to get the currently sorted column, then request the data in sorted order.
If you are using a ListDataProvider, you can sort the list manually at any time: Collections.sort(dataProvider.getList(), myComparator). CellTable just assumes that any data being pushed into the CellTable is already sorted. Thanks, John LaBanca jlaba...@google.com On Mon, Mar 14, 2011 at 5:59 AM, Jerome Thoma <thoma...@googlemail.com>wrote: > Hi everyone, > I recently upgraded to GWT and I am currently adding table sorting to my > application. Everything works fine except that after a refresh of my data, > no sorting is applied until the user clicks on the column header. I am using > a ListDataProvider and neither adding data to the list nor changing data > seems to trigger a re-sort event. Do I have to trigger this myself? And how > can I create a ColumnSortEvent? > > Have a nice day, > Jerome Thoma > > -- > 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+unsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/google-web-toolkit?hl=en. > -- 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+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.