Skip to content

Pageable and sort order problem #11

@dmarko484

Description

@dmarko484

Hello,
I'm trying to use your provider with Vaadin 10(beta10) and I struggle with sort order not working properly. I have 'FilterablePageableDataProvider' attached to 'com.vaadin.flow.component.grid.Grid' . I have a few columns defined as sortable in the Grid. Now when I click on any sortable column, I cannot see a proper sorted column name in 'fetchFromBackEnd' method in Pageable object (using code below).

 protected Page<Porada> fetchFromBackEnd(Query<Porada, String> query, Pageable pageable) {          
    System.out.println(pageable.getSort().iterator().next().getProperty());
    ...
}

What I always get is column name defined in getDefaultSortOrders() ... in provider. Any ideas what is going one here?

BTW: Thanks for such a great addon!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions