CellTable sorting when updating CellTable in MVP architecture

29 views
Skip to first unread message

Shaun Tarves

unread,
Oct 10, 2012, 4:35:58 PM10/10/12
to google-we...@googlegroups.com
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!
Reply all
Reply to author
Forward
0 new messages