title: How to add grid filters in Vaadin 8?
body: <p>Vaadin 8 just came out. the adding of filters in Grid was never in their documentation, i only found one working solution <a href="https://stackoverflow.com/questions/33456475/vaadin-filters-in-grid">here</a> in stackoverflow.</p>
  
  <pre><code>  HeaderCell cell = filterRow.getCell(pid);
                      // Have an input field to use for filter
                      TextField filterField = new TextField();
                      filterField.setColumns(0);
                      filterField.setHeight("23");
  
  
  
                      // Update filter When the filter input is changed
                      filterField.addTextChangeListener(change -&gt; {
                          // Can't modify filters so need to replace
                          b.removeContainerFilters(pid);
  
                          // (Re)create the filter if necessary
                          if (! change.getText().isEmpty())
                              b.addContainerFilter(
                                  new SimpleStringFilter(pid,
                                      change.getText(), true, false));
                      });
                      cell.setComponent(filterField);
  </code></pre>
  
  <p>But now since the update, this Solution is no longer working since SimpleStringFilter is no longer available in the new grid, and BeanItemContainer are not recognized anymore and only allows setItems() to fill grid data.</p>
  
  <p>Can anyone help me update this code for Vaadin 8?</p>