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

ListModelList setActivePage doesn't change Grid paging in MVVM pattern

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Normal
    • Resolution: Fixed
    • Affects Version/s: 8.5.0
    • Fix Version/s: 8.5.2
    • Component/s: None
    • Security Level: Jimmy
    • Labels:
      None

      Description

      Steps to Reproduce

      1. run the zul below with the attached viewmodel

          <div viewModel="@id('vm')@init('org.zkoss.reference.component.data.PagingVM')" >
              <grid model="@init(vm.model)" mold="paging">
                  <columns>
                      <column label="Locale"/>
                  </columns>
                  <template name="model">
                      <row>
                          ${each}
                      </row>
                  </template>
              </grid>
              <button label="Previous" onClick="@command('previous')"/>
              <button label="Next" onClick="@command('next')"/>
          </div>
      

      2. click next, previous button

      Current Result

      no page switching

      Expected Result

      paging works

      Debug Information

      • _pagingListeners of ListModelList is empty since the model is assigned later than set mold.

      Workaround

        Activity

        Hide
        Anonymous added a comment -

        Fixed since 2018/04/02

        Show
        Anonymous added a comment - Fixed since 2018/04/02
        Hide
        rudyhuang rudyhuang added a comment -

        TreeModel issue (reopened)

        Show
        rudyhuang rudyhuang added a comment - TreeModel issue (reopened)
        Hide
        Anonymous added a comment -

        Fixed since 2018/04/13

        Show
        Anonymous added a comment - Fixed since 2018/04/13

          People

          • Assignee:
            CharlesQiu CharlesQiu
            Reporter:
            hawk hawk
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Time Tracking

              Estimated:
              Original Estimate - 4 days
              4d
              Remaining:
              Remaining Estimate - 0 minutes
              0m
              Logged:
              Time Spent - 3 days Time Not Required
              3d