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

Keep selection box visible even when spreadsheet losing focus

XMLWordPrintable

    • Icon: New Feature New Feature
    • Resolution: Done
    • Icon: Normal Normal
    • 3.8.1
    • 3.7.0
    • None
    • Security Level: Jimmy
    • None

      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>	
      

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

              Created:
              Updated:
              Resolved: