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

Keep selection box visible even when spreadsheet losing focus

    XMLWordPrintable

    Details

    • Type: New Feature
    • Status: Closed
    • Priority: Normal
    • Resolution: Done
    • Affects Version/s: 3.7.0
    • Fix Version/s: 3.8.1
    • Component/s: None
    • Security Level: Jimmy
    • Labels:
      None

      Description

      In Excel, users can always see their selection box no matter which dialog they open like

      If users want to implement similar dialog under current design, the selection box will disappear when users move focus to a input component in a dialog.

      Workaround

      <script type="text/javascript"><![CDATA[
      zk.afterLoad('zss', function() {
          var old = {};
      	zk.override(zss.DataPanel.prototype, old, {
      		_doFocusLost: function() {
      	        var a = this.sheet;
      	        a.state = zss.SSheetCtrl.NOFOCUS;
      	        a.hideCellFocus();
      	        //a.hideCellSelection();
      	        a.animateHighlight(false);
      	        a._wgt.fire("onBlur")
              }
         });
      });	
      		
      ]]></script>	
      

        Attachments

          Activity

            People

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

              Dates

              Created:
              Updated:
              Resolved: