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

Oncheck event doesn't fire when the new radio attached

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Normal Normal
    • 6.0.1, 5.0.12
    • 5.0.11
    • Components
    • Security Level: Jimmy

      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>
      

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

              Created:
              Updated:
              Resolved: