Reputation: 190
Hello all i am trying to make a grid with data in mydatabase posgresql Anyway i want to make a filtering are insede the grid there is a doc in vaadin vaadin grid example filtering but i am using vaadin 7 in my code i wrote someting like that
private void setKolonFiltre() {
BeanItemContainer<AdmKullanicilar> filterContainer =
new BeanItemContainer<>(AdmKullanicilar.class);
GeneratedPropertyContainer filterProperty =
new GeneratedPropertyContainer(filterContainer);
filteringHeader= tblKullanici.appendHeaderRow();
TextField filteringField = getColumnFilterField();
filteringField.addValueChangeListener(e ->{
filterContainer.addContainerFilter();
});
}
is there any way to use DataProvider
in Vaadin 7?
Upvotes: 4
Views: 236
Reputation: 10643
No, you cannot use DataProvider in Vaadin 7, it has been introduced in Vaadin 8.
Here are some old examples of ContainerFilter use with Vaadin 7 (since filtering is done via Container, it works same way with Grid)
Upvotes: 1