same problem here

i won't bother to create another Map object, instead, I @override the
toString() function for TextColumn class. By calling
cellTable.getColumnSortList().get(0).getColumn().toString(); and i can
get back the pre-defined string.

hope gwt group can enhance the Cell Table in the future.


On Apr 15, 8:37 am, Soon Fatt Hoo <[email protected]> wrote:
> Don't you mean CellTable#getColumnIndex(sortList.get(0).getColumn())
> then look up the string from ColumnMap by using the index?
>
> On Mar 15, 1:22 pm, John LaBanca <[email protected]> wrote:
>
> > You can call CellTable#getColumn(int) to get the Column object from the
> > index.  Then you can use a Map of Column to ServerColumnId to resolve the
> > value to send to the server.
>
> > Thanks,
> > John LaBanca
> > [email protected]
>
> > On Tue, Mar 15, 2011 at 12:21 PM, Stephan T 
> > <[email protected]>wrote:
>
> > > I'm trying to implement server side sorting using CellTable and
> > > AsyncDataProvider in GWT 2.2. I've followed the example in the
> > > documentation and have everything working with the AsyncDataProvider
> > > only fetching ten objects at a time. But when it comes to sorting I
> > > can't make it work.
>
> > > I can't figure out how to tell the server on which of the objects
> > > attributes to sort the query result. In the onRangeChanged-method I
> > > can get the ColumnSortList and then get the columns. But the column
> > > object does not contain information like the columns headerString.
>
> > > If I could get the columns headerString I could figure out which
> > > attribute of the object to do the sorting on, but I can't and now I'm
> > > out of ideas.
>
> > > I could of course subclass the column-object and add some kind of
> > > identifier-method to it, but I have a feeling that it's something I've
> > > missed because it shouldn't be that tedious.
>
> > > --
> > > You received this message because you are subscribed to the Google Groups
> > > "Google Web Toolkit" group.
> > > To post to this group, send email to [email protected].
> > > To unsubscribe from this group, send email to
> > > [email protected].
> > > 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 [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.

Reply via email to