Wednesday, October 10, 2012

CellTable sorting when updating CellTable in MVP architecture

Hi - 

I have a presenter that provides data for a CellTable. The presenter holds the ListDataProvider, and attaches that data provider to the cell construct it gets from the view.

I am unsure of how to handle column sorting in this case. My presenter periodically refreshes the data in the ListDataProvider, but how can I get access to the currently sorted column from the view so that I can add the new data in the proper sort order?

Should the presenter listen for ColumnSortEvents and do all the data sorting?

Thanks!

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/6WgxO_qkOw4J.
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