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

grid onScroll client-side event not working in 7.0

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Normal Normal
    • 7.0.1
    • 7.0.0
    • ZK Client Engine
    • All browsers

      The following ZK fiddle no longer works in 7.0:
      http://zkfiddle.org/sample/24ahj3i/1-Listen-Grid-scrolling

      <zk>
      <zscript>Object[] o = new Object[50];</zscript>
      <hlayout>
      <grid id="grid1" width="100px" height="100px">
      <rows>
      <row forEach="${o }">
      <label value="item ${forEachStatus.index}"/>
      </row>
      </rows>
      </grid>
      <grid id="grid2" width="100px" height="100px">
      <rows>
      <row forEach="${o}">
      <label value="item ${forEachStatus.index}"/>
      </row>
      </rows>
      </grid>
      </hlayout>
      <zscript><![CDATA[
      grid1.setWidgetListener("onScroll", "this.$f('grid2').ebody.scrollTop = this.ebody.scrollTop;");
      ]]></zscript>
      </zk>

            danchen0720 danchen0720
            odranoel75 odranoel75
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: