Uploaded image for project: 'ZK Spreadsheet'
  1. ZK Spreadsheet
  2. ZSS-423

JS error when rowfreeze > preloadRowSize or columnfreeze > preloadColumnSize

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Normal Normal
    • 2.6.0, 3.0.0
    • 2.5.0
    • ZSS Component
    • None

      refer to attached sample code

      for workaround, refer to attachment

      Reproducing Steps:

      1. create and visit the zul page below:

      	<spreadsheet src="/TestFile2007.xlsx" 
      		preloadRowSize="5" preloadColumnSize="5"
      		rowfreeze="10" columnfreeze="10"
      		maxrows="1000" height="100%" width="100%"
      		maxcolumns="100">
      	</spreadsheet>
      

      2. the following JS error showed

      Uncaught TypeError: Cannot call method 'getCell' of undefined zss.wpd:5333
      zss.Cell.zk.$extends.$init zss.wpd:5333
      (anonymous function) zk.wpd:9
      zss.CellBlockCtrl.zk.$extends.$init zss.wpd:4734
      (anonymous function) zk.wpd:9
      zss.TopPanel.zk.$extends.initFrozenBlock_ zss.wpd:11854
      zss.Panel.zk.$extends.$init zss.wpd:11039
      (anonymous function) zk.wpd:9
      zss.SSheetCtrl.zk.$extends.afterParentChanged_ zss.wpd:14231
      zk.Widget.zk.$extends.appendChild zk.wpd:19
      zss.Spreadsheet.zk.$extends.setActiveRange zss.wpd:737
      zk.copy._set2 zk.wpd:9
      zk.Widget.zk.$extends.set zk.wpd:19
      h zk.wpd:21
      h zk.wpd:21
      d zk.wpd:21
      l zk.wpd:20
      zk.copy.setLoaded._zkf zk.wpd:20
      (anonymous function) zkex.inp.wpd:10
      l zk.wpd:20
      zk.copy.setLoaded._zkf zk.wpd:20
      (anonymous function) zk.wpd:2063
      l zk.wpd:20
      zk.copy.setLoaded._zkf zk.wpd:20
      (anonymous function)
      

        1. zss-bug-freeze.zul
          13 kB
        2. zss-bug-freeze.zul
          13 kB
        3. zss.js
          10 kB
        4. zss.js
          10 kB

            paowang paowang
            samchuang samchuang
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: