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

        vincentjian vincentjian created issue -
        vincentjian vincentjian made changes -
        Field Original Value New Value
        Description With custom paging component: the page size always 20.
        <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.isAutopaging())" />
        </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.isAutopaging())" />
        </div>
        </window>
        </zk>
        With custom paging component: the page size always 20.
        <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>
        vincentjian vincentjian made changes -
        Description With custom paging component: the page size always 20.
        <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>
        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>
        jumperchen jumperchen made changes -
        Issue Type New Feature [ 2 ] Bug [ 1 ]
        jumperchen jumperchen made changes -
        Assignee Jenkins [ jenkins ] SimonPai [ simonpai ]
        SimonPai SimonPai made changes -
        Status Open [ 1 ] Closed [ 6 ]
        Fix Version/s 5.0.8 [ 10012 ]
        Resolution Fixed [ 1 ]

          People

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

            Dates

            • Created:
              Updated:
              Resolved: