Friday, May 13, 2016

Re: Sorting cell table columns populated from gwt rpc not working

Try to replace this line:
ListHandler<ContactInfo> listHandler = new ListHandler<ContactInfo>(result);

with the following line:
ListHandler<ContactInfo> listHandler = new ListHandler<ContactInfo>(dataProvider.getList());

I would also create the ListHandler, set its comparators and adding it to the table outside of the async callback when creating the table. The ListDataProvider can also be created initially with the table. Then you only need to update the ListDataProvider in your async callback.

/Stefan

--
You received this message because you are subscribed to the Google Groups "GWT Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment