title: Grid filled by a data provider: how to trigger an action after refreshment?
body: <p>In Vaadin 8.2, I have a Grid bound to a bean using a data provider (AbstractBackEndDataProvider). Data is fetched from a DB, filters are applied:</p>
  
  <pre><code>Grid grid = new Grid&lt;&gt;();
  grid.setDataProvider(dataProvider.withConfigurableFilter()); // dataProvider derives from AbstractBackEndDataProvider&lt;T,F&gt;
  </code></pre>
  
  <p>The essential flow is the following: user inputs an item id in a form and submits, a submit event listener gets the user input, creates a new filter and updates the data provider:</p>
  
  <pre><code>filterSubmitButton.addClickListener(event -&gt; {
      try {
          ItemListFilter filter = new ItemListFilter(
              itemFilter.getValue(), // itemFilter = new TextField();
          );
          filterBinder.writeBean(filter);
          dataProvider.setFilter(filter);
      } catch (ValidationException e) {
          //...
      }
   });
  </code></pre>
  
  <p>When the data provider gets the filter updated it calls a service to fetch new items from DB with the filter applied (to the DB query). Vaadin takes care of refreshing the Grid with new data afterwards.</p>
  
  <p><strong>What I want is</strong> to have a callback at this last moment. Say an use case would be to check if a filtered fetched result set contains only one item, to select this item in the Grid (which in its turn will trigger an event showing item details in another pane). Or to select the first grid row after initial list is loaded</p>
  
  <p><strong>But the problem</strong> is that there is neither grid.addRefreshListener() nor dataProvider.addRefreshmentListener(). Any other listeners do not seem to apply in this case.  </p>
  
  <p>Thanks for any help in advance.</p>