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

Exception when toggle auto filter

XMLWordPrintable

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

      get this exception when user try to set a filter on a empty cell, but should it handle by UI, instead of throw an exception?
      嚴重的: >>java.lang.RuntimeException: Cannot find the range. Please select a cell within the range and try again!
      >> at org.zkoss.zss.model.impl.RangeImpl.autoFilter(RangeImpl.java:2037)
      >> at org.zkoss.zss.api.NRange.enableAutoFilter(NRange.java:500)
      >> at org.zkoss.zss.essential.ToolbarCtrl.onToggleFilter(ToolbarCtrl.java:1022)
      >> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      >> at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      >> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

      Reproducing Steps:

      1. Open Spreadsheet
      2. select an empty cell then enable auto-filter

      Actual:
      the above exception occurs.

      Expected:

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

              Created:
              Updated:
              Resolved: