Re: GWT 2.2 CellTable sorting

2011-04-25 Thread 3xM
> 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 hea

Re: GWT 2.2 CellTable sorting

2011-03-14 Thread John LaBanca
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(), m

GWT 2.2 CellTable sorting

2011-03-14 Thread Jerome Thoma
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