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

Combobutton does not change appearance when disabled state is toggled.

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Normal
    • Resolution: Fixed
    • Affects Version/s: 7.0.0
    • Fix Version/s: 7.0.2
    • Component/s: Components
    • Labels:
    • Environment:

      Windows XP SP3, Google Chrome 31.0.1650.57

      Description

      The Combobutton does not reflect the enabled/disabled status after it has been created. By pressing the Toggle Status button in the code below you can see that while the Placeholder Toolbarbutton changes its look from enabled to disabled and vice versa, the Combobutton remains disabled. However it's dropdown menu works as expected.

       
      <zk>
          <window vflex="true" border="normal">
              <tabbox vflex="true">
                  <tabs>
                      <tab label="Test"/>
                  </tabs>
                  <tabpanels>
                      <tabpanel>
                          <toolbar>
                              <combobutton id="mycb" label="My" mold="toolbar" disabled="true">
      
                                  <menupopup>
                                      <menuitem label="123"/>
                                  </menupopup>
      
                              </combobutton>
                              <toolbarbutton id="myph" label="Placeholder" disabled="true"/>
      
                              <toolbarbutton label="Toggle Status" onClick='mycb.setDisabled(!mycb.isDisabled());myph.setDisabled(mycb.isDisabled());'/>
                              <toolbarbutton label="Read Status" onClick='Clients.alert("Disabled: " + mycb.isDisabled().toString())'/>
                          </toolbar>
                      </tabpanel>
                  </tabpanels>
              </tabbox>
          </window>
      </zk>
      

        Attachments

          Activity

            People

            Assignee:
            jumperchen jumperchen
            Reporter:
            benji benji
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: