Uploaded image for project: 'ZK'
  1. ZK
  2. ZK-259

Using custom paging component in grid when autopaging is used

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Normal
    • Resolution: Fixed
    • Affects Version/s: 5.0.7.1
    • Fix Version/s: 5.0.8
    • Component/s: Components
    • Security Level: Jimmy

      Description

      With custom paging component: the page size is always 20 even autopaging is setting to true.
      <zk>
      <zscript><![CDATA[
      Integer[] items = new Integer[30];
      for (int i = 0; i < 30; i++)
      items[i] = i;
      ]]></zscript>
      <window title="new page title" border="normal" width="100%" vflex="1">
      <div vflex="true">
      <paging id="paging" />
      <grid id="listbox" mold="paging" paginal="$

      {paging}

      " vflex="true" autopaging="true">
      <columns>
      <column label="column1" />
      </columns>
      <rows>
      <row forEach="$

      {items}">${each}</row>
      </rows>
      </grid>
      <button label="test" onClick="alert(listbox.getPaginal().getPageSize())" />
      </div>
      </window>
      </zk>

      Without other paging component, the page size will change according to browser height size.
      <zk>
      <zscript><![CDATA[
      Integer[] items = new Integer[30];
      for (int i = 0; i < 30; i++)
      items[i] = i;
      ]]></zscript>
      <window title="new page title" border="normal" width="100%" vflex="1">
      <div vflex="true">
      <grid id="listbox" mold="paging" vflex="true" autopaging="true">
      <columns>
      <column label="column1" />
      </columns>
      <rows>
      <row forEach="${items}

      ">$

      {each}

      </row>
      </rows>
      </grid>
      <button label="test" onClick="alert(listbox.getPaginal().getPageSize())" />
      </div>
      </window>
      </zk>

        Activity

          People

          • Assignee:
            SimonPai SimonPai
            Reporter:
            vincentjian vincentjian
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: