Coder Social home page Coder Social logo

Make "Items per page" optional about pagedtable HOT 4 CLOSED

peppe avatar peppe commented on July 18, 2024
Make "Items per page" optional

from pagedtable.

Comments (4)

Peppe avatar Peppe commented on July 18, 2024

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.

from pagedtable.

DeepaliSakunde avatar DeepaliSakunde commented on July 18, 2024

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

from pagedtable.

LivePwndz avatar LivePwndz commented on July 18, 2024

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.

from pagedtable.

DeepaliSakunde avatar DeepaliSakunde commented on July 18, 2024

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.

from pagedtable.

Related Issues (19)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.