Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8983039
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T20:44:04+00:00 2026-06-15T20:44:04+00:00

I could not find any tutorial regarding custom pagination in zk. ZK provides it’s

  • 0

I could not find any tutorial regarding custom pagination in zk. ZK provides it’s default pagination and it’s quite good but my customer needs different pagination style. So, how can I create custom pagination in ZK. Any help please ?

I have a listbox like this :

<listbox id=”bidLbx” mold=”paging”>
   <listitem>
     ...
   </listitem>
</listbox>

It displays ZK’s default pagination like: 1 2 3 4 5 Next Last but with out option to select per page row number. So, I need my own Buttons and per page dropdown option.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-15T20:44:06+00:00Added an answer on June 15, 2026 at 8:44 pm

    You have to write the codes to control the pagination buttons as we require, i.e. First Previous 1 2 3 4 5 Next Last.

    We just take reference of that id i.e. bidLbx and do coding. We need to get certain values and use those values to control the buttons.

    This gives the current page no: bidLbx.getPaginal().getActivePage();

    This gives the total number of rows: bidLbx.getPaginal().getTotalSize();

    This sets the Page Size (i.e. no. of rows per page): bidLbx.getPaginal().setPageSize();

    This gives the no. of pages: bidLbx.getPaginal().getPageCount();

    and don’t forget to disable the default paging.

    <listbox id=”bidLbx” mold=”paging”>
        ...
        <zscript>
                <![CDATA[
                    bidLbx.getPagingChild().setVisible(false);
                    ]]>
        </zscript>
    </listbox>
    

    First button Example:

    <button id="first" label="First" style="margin:10px; padding:5px;">
       <attribute name="onClick">
          <![CDATA[
              bidLbx.getPaginal().setActivePage(0);
          ]]>
       </attribute>
    </button>
    

    Dropdown perpage combobox:

    <combobox id="pageSize" value="20" style="width:50px;" readonly="true">
        <comboitem label="5"></comboitem>
        <comboitem label="10"></comboitem>
            <attribute name="onCreate">
               <![CDATA[
                 String ps = pageSize.getValue();
             int pSize = Integer.parseInt(ps);
             bidLbx.getPaginal().setPageSize(pSize);
          ]]>
            </attribute>
           <attribute name="onChange">
         <![CDATA[
               String ps = pageSize.getValue();
               int pSize = Integer.parseInt(ps);
           bidLbx.getPaginal().setPageSize(pSize);
         ]]>
          </attribute>
    </combobox>
    

    If you have still problem do comment.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

i search lot in the internet and could not find any good tutorial about
I've been searching around but could not find any answers to this. What I'm
I tried searching in google but could not find any useful answer, if(verifier.length() >
This should be a common scenario, but could not find any relevant post yet..
I googled about #!/usr/bin/perl , but I could not find any satisfactory answer. I
I looked for this on the web, but I could not find any clear
I want to develop java mobile applications.I could not find the best tutorial.Can any
I have searched but could not find the reason for this behavior. I have
I am interesting in some manual/tutorial which I could not find. What is a
I could not find a way to make a RTL paragraph in Docx using

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.