ZK

Using custom paging component in grid when autopaging is used

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Normal 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

Hide
SimonPai added a comment - 05/Aug/11 5:51 AM

Fixed since 2011/8/5.

Show
SimonPai added a comment - 05/Aug/11 5:51 AM Fixed since 2011/8/5.

People

Vote (0)
Watch (0)

Dates

  • Created:
    01/Aug/11 1:49 AM
    Updated:
    05/Aug/11 5:51 AM
    Resolved:
    05/Aug/11 5:51 AM