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

The radiogroup of cloned radio is not updated

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Priority: Normal
    • Resolution: Unresolved
    • Affects Version/s: 8.5.1.3
    • Fix Version/s: None
    • Component/s: Components
    • Labels:
      None

      Description

      Steps to Reproduce

      <zk>
        <div>
            <radiogroup id='rgLineType'>
              <radio label='application'/>
              <radio label='comment'/>
              <radio label='include'/>
              <radio label='#include'/>
          </radiogroup>
          <separator/>
          <label id='info'/>
          <separator/>
          <button label='Clone radiogroup' onClick='CloneRadiogroup(event)'/>
          <separator/>
        </div>
      
      <zscript>
      void CloneRadiogroup (Event event)
      {
      	Radiogroup rgNew = rgLineType.clone();
      	rgNew.setId(null);
      	info.setValue ("name of source radiogroup is [" + rgLineType.name + "], name of clone is [" + rgNew.name + "]. seems different, but it is rendered as same name as the source: Click radio in the one radiogroup will clear selection in another radiogroup");
      	event.getTarget().getParent().appendChild (rgNew);
      }
      </zscript>
      </zk>
      

      Click the button and check the radios

      Current Result

      All radios are in the same group.

      Expected Result

      There should be two groups.

      Debug Information

      Radio.radiogroup is still the previous one. May be a side effect of ZK-3818.

      Workaround


        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned
              Reporter:
              rudyhuang rudyhuang
              Votes:
              1 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated: