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

Data validation with date should work

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Normal Normal
    • 3.8.0
    • 3.7.0
    • ZSS Component
    • None

      1. set validation by following code fragement

      Ranges.range(ss.getSelectedSheet(), "A1").setValidation(org.zkoss.zss.api.model.Validation.ValidationType.DATE,
      	true, org.zkoss.zss.api.model.Validation.OperatorType.EQUAL, false, "1/30/2015", "", true, "", "", true, 
      	org.zkoss.zss.api.model.Validation.AlertStyle.STOP, "", "");
      

      where ss is the id of spreadsheet component in zul file.
      2. after that, type 1/30/2015 into A1
      3. this action should work for the equivalent case.

            henrichen henrichen
            JerryChen JerryChen
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: