Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Show N rows only -Listing Enhancement request #119

Open
vaithu opened this issue Jul 25, 2020 · 0 comments
Open

Show N rows only -Listing Enhancement request #119

vaithu opened this issue Jul 25, 2020 · 0 comments

Comments

@vaithu
Copy link

vaithu commented Jul 25, 2020

I'm trying to show always 50 rows only in the grid and using the below code

listing = Components.listing.properties(StarZeroLevel.PROPERTY_SET)
                .dataSource(datastore,StarZeroLevel.TARGET)
                .pageSize(50)
                .withQueryConfigurationProvider(this::queryFilter)

This code doesn't restrict the number of items instead just read 50 rows at a time. I see there is a way to do it using Query Statement's limit() method, but I do not see any way to use in Component's Listing. Again, looks this is possible if I use Vaadin DataProvider callbacks method instead of DatastoreDataProvider but I want to go with 100% holon platform code.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant