Directory

← Back

Grid

Advanced filtering grid. Customizable on server side.

Author

Rating

Grid component implementation. It extends functionality of Vaadin Table by adding:

  • advanced filtering
  • paging
  • grid data export to excel and csv

Grid supports the following operators for filtering by default:

Strings, Enums: contains, starts with, like, equal, not equal Numbers and Dates: equal, not equal, between, greater, less, greater or equal, less or equal Boolean: equal, not equal

Grid is a fundamental component for schedule optimization software for high schools and universities: www.ekronas.com

Forum is temporally unavailable, please contact us by email to contact@lexaden.com

If you have problems to build project please add the following in maven pom.xml

            <repository>
                <id>lexaden1</id>
                <name>Lexaden Repository</name>
                <url>http://www.lexaden.com/maven2/repo</url>
            </repository>

Sample code

final Grid grid = new Grid(table);
private List<Person> createPersonList() {
        final List<Person> persons = new ArrayList<Person>();

        Person person;

        person = new Person();
        person.setFirstName("Victoria");
        person.setLastName("Azarenka");
        setBirthday(person, "1989-07-31");
        person.setScore(10595);
        person.setHeight(1.83f);
        persons.add(person);

        person = new Person();
        person.setFirstName("Maria");
        person.setLastName("Sharapova");
        setBirthday(person, "1987-04-19");
        person.setScore(10045);
        person.setHeight(1.88f);
        persons.add(person);

        person = new Person();
        person.setFirstName("Serena");
        person.setLastName("Williams");
        setBirthday(person, "1981-09-26");
        person.setScore(9750);
        person.setHeight(1.75f);
        persons.add(person);

        person = new Person();
        person.setFirstName("Agnieszka");
        person.setLastName("Radwanska");
        setBirthday(person, "1989-03-06");
        person.setScore(7505);
        person.setHeight(1.72f);
        persons.add(person);

        person = new Person();
        person.setFirstName("Angelique");
        person.setLastName("Kerber");
        setBirthday(person, "1988-01-18");
        person.setScore(5550);
        person.setHeight(1.73f);
        persons.add(person);

        return persons;
    }
        final Table table = new Table();
        final List<Person> persons = createPersonList();

        table.setContainerDataSource(new BeanItemContainer<Person>(Person.class, persons));
        table.setWidth(100, Sizeable.UNITS_PERCENTAGE);
        int tableSize = table.size();
        if (tableSize > 20) {
            table.setHeight(400, Sizeable.UNITS_PIXELS);
        }
        table.setPageLength(tableSize);
        table.setColumnCollapsingAllowed(true);
        table.setColumnReorderingAllowed(true);

        table.setVisibleColumns(new Object[] {"firstName", "lastName", "birthday", "score", "height", "female"});

        table.setColumnHeaders(new String[]{"First Name", "Last Name", "Birthday", "Score", "Height", "Female"});

        table.setSelectable(true);

Compatibility

(Loading compatibility data...)

Was this helpful? Need more help?
Leave a comment or a question below. You can also join the chat on Discord or ask questions on StackOverflow.

Version

Migration to Vaadin 7.1.9 PopupButton 2.3.0

Released
2014-01-16
Maturity
STABLE
License
Apache License 2.0

Compatibility

Framework
Vaadin 7.1
Vaadin 7.0 in 1.7.3
Vaadin 6.8+ in 1.6.0
Browser
N/A

Grid - Vaadin Add-on Directory

Advanced filtering grid. Customizable on server side. Grid - Vaadin Add-on Directory
Grid component implementation. It extends functionality of Vaadin Table by adding: - advanced filtering - paging - grid data export to excel and csv Grid supports the following operators for filtering by default: Strings, Enums: contains, starts with, like, equal, not equal Numbers and Dates: equal, not equal, between, greater, less, greater or equal, less or equal Boolean: equal, not equal Grid is a fundamental component for schedule optimization software for high schools and universities: www.ekronas.com Forum is temporally unavailable, please contact us by email to contact@lexaden.com If you have problems to build project please add the following in maven pom.xml lexaden1 Lexaden Repository http://www.lexaden.com/maven2/repo
Online