After refresh dataprovider listener

Is there a way to add a listener to handle when the data provider of a grid have completed emit all the items? Or basically a listener to catch when the refresh is completed. Thanks in advance

How about something like this:

    public class MyListDataProvider extends ListDataProvider {

        public MyListDataProvider(Collection items) {
            super(items);
        }

        @Override
        public void refreshAll() {
            super.refreshAll();
            // your custom code here            
        }
    }

I don’t know why I didn’t think about it !!!

Probably I will not put Ui code there…but will fire an event from there…like the event fire before the dataprovider is about to be refreshed.
Maybe that can be something to integrate part of the framework in the future.

Thanks for pointing me in the right direction.