Uploaded image for project: 'ZK'
  1. ZK
  2. ZK-2877

Listfoot is not filtered out

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Normal Normal
    • None
    • 7.0.6.1
    • ZK Client Engine
    • None

      1. click the button above to set listitem invisible.
      2. check select all checkbox.
      3. observe the browser console. javascript errors occurred.

      a workaround:
      zk.afterLoad('zul.sel', function() {
      function _isListgroup(w)

      { return zk.isLoaded('zkex.sel') && w.$instanceof(zkex.sel.Listgroup); }

      function _isListfoot(w)

      { return w.$instanceof(zul.sel.Listfoot); }

      function _isListgroupfoot(w)

      { return zk.isLoaded('zkex.sel') && w.$instanceof(zkex.sel.Listgroupfoot); }

      zk.override(zul.sel.SelectWidget.prototype, '_isAllSelected', function(){
      if (!this._selItems.length)
      return false;
      var isGroupSelect = this.groupSelect;
      for (var it = this.getBodyWidgetIterator(

      {skipHidden:true}

      ), w; (w = it.next())

      { if ((_isListgroup(w) || _isListgroupfoot(w) || _isListfoot(w)) && !isGroupSelect) continue; if (!w.isDisabled() && !w.isSelected()) return false; }

      return true;
      });
      });

        1. HideController.java
          0.8 kB
        2. hidingListItem.zul
          0.7 kB
        3. hidingListItem.zul
          0.6 kB

            Unassigned Unassigned
            JoeHuang JoeHuang
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: