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

Grid doesn't render on demand when visibleRows specified

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Normal
    • Resolution: Fixed
    • Affects Version/s: 8.5.1.2
    • Fix Version/s: 8.5.2
    • Component/s: None
    • Security Level: Jimmy
    • Labels:
      None
    • gh.sprint.customfield.default.name:
      ZK 8.5.2 S1, ZK 8.5.2 S2

      Description

      Steps to Reproduce

      1. run the attached zul
      2. click "number of rows" button

      Current Result

      it shows 500 which means Grid creates Row for all item in a model instead of 50 (initial ROD size).

      Expected Result

      According to our doc: https://www.zkoss.org/wiki/ZK_Developer%27s_Reference/Performance_Tips/Listbox,_Grid_and_Tree_for_Huge_Data/Turn_on_Render_on_Demand

      Note that Grid ROD is will not work unless the Grid is configured with a limited view port; i.e. you have to set height or vflex attribute of the Grid or set the Grid to paging mold so the user can see only a portion of the content of the Grid.

      So specifying visibleRows should also enable ROD.

      Workaround

      specify "height"

        Attachments

          Activity

            People

            • Assignee:
              klyvechen klyvechen
              Reporter:
              hawk hawk
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - 2 days
                2d
                Remaining:
                Remaining Estimate - 2 days
                2d
                Logged:
                Time Spent - Not Specified
                Not Specified