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

The radiogroup of cloned radio is not updated

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Normal
    • 9.5.1
    • 8.5.1.3
    • Components
    • 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

              katherinelin katherinelin
              rudyhuang rudyhuang
              Votes:
              1 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - 2 days
                  2d
                  Remaining:
                  Remaining Estimate - 2 days
                  2d
                  Logged:
                  Time Spent - Not Specified
                  Not Specified