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

Oncheck event doesn't fire when the new radio attached

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Normal
    • Resolution: Fixed
    • Affects Version/s: 5.0.11
    • Fix Version/s: 6.0.1, 5.0.12
    • Component/s: Components
    • Security Level: Jimmy
    • Labels:

      Description

      Click the button, then the onCheck event doesn't fire

      <zk>
      <radiogroup id="group1">
      <attribute name="onCheck"><![CDATA[
              Messagebox.show(group1.getSelectedItem().getLabel());
          ]]></attribute>
      </radiogroup>
      <div id="div"/>
      <button label="click" >
          <attribute name="onClick"><![CDATA[
              div.getChildren().clear();
              
              Radio r = new Radio("1");
              r.setRadiogroup(group1);
              div.appendChild(r);
              r = new Radio("2");
              r.setRadiogroup(group1);
              div.appendChild(r);
              //group1.invalidate();
          ]]></attribute>
      </button>
      </zk>
      

        Attachments

          Activity

            People

            • Assignee:
              TonyQ TonyQ
              Reporter:
              matthewgo matthewgo
            • Votes:
              1 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: