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

Make "Items per page" optional #5

Closed
Jona5 opened this issue Jul 28, 2011 · 4 comments
Closed

Make "Items per page" optional #5

Jona5 opened this issue Jul 28, 2011 · 4 comments

Comments

@Jona5
Copy link

Jona5 commented Jul 28, 2011

Hi,

it would be nice if we could hide the ComboBox ("Items per page").
In some Panels we do not have enough space for more entry in our PagedTable.

thanks.

@Peppe
Copy link
Owner

Peppe commented Nov 22, 2011

The createControls() is just a default to get you started. All the methods are public to create your own similar controls in exactly the way that you require. You should do that instead of using the predefined version when you need more customization power.

@Peppe Peppe closed this as completed Nov 22, 2011
@DeepaliSakunde
Copy link

Can you please name those methods?
I can't find any method to just show next page previous page , last & first page in the controls bar.

I am using Vaadin 6.8

Thanks,
Deepali

@LivePwndz
Copy link

These methods are available via the PagedTable object, not the createControls returned object.

previousPage() :- Self explanatory
nextPage() :- Self explanatory
setCurrentPage(pageNumber) :- pageNumber could be any integer value from 0 - t where t is the total number of pages. use getTotalAmountOfPages() to get the value of t. So to view the first page, call setCurrentPage(0), and to view the last page, call setCurrentPage(t).
Please make the effort to go through the source code. It's pretty clear.

Hope that can help you.

@DeepaliSakunde
Copy link

Thanks.
I found it.
I have another issue now.
First time when table gets populated it shows 3 pages.
When I click on next page it goes to 2nd page and total number of pages count is changed to 4 from 3
Why so?

The table is repeating the data in next pages.
Please help.

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

4 participants