[CLOSED] Can't get radio change events to fire when dynamically adding panels

  1. #1

    [CLOSED] Can't get radio change events to fire when dynamically adding panels

    Hi,

    My panel contains radio buttons and some "normal" buttons. The panel is loaded dynamically depending on the user choice - like the examples you have on this page:

    For some reason, the click event on a button on the panel fires fine, but the change event of the radio button doesn't fire. Please can you explain why? Here is the code for the radio group (I have 2 radio items in 2 seperate panels, hence the 2 radio groups)

    <ext:RadioGroup runat="server" GroupName="MonitorOptions">
    <Items>
      <ext:Radio ID="MonitorSelectedPorts" runat="server" BoxLabel="Monitor Selected Ports" Checked="true">
      <Listeners>
        <Check Handler="console.log('radio ga ga');" />
      </Listeners>
      </ext:Radio>
    </Items>
    </ext:RadioGroup>
    
    <!-- And in another panel -->
    <ext:RadioGroup ID="MonitorAll" runat="server" GroupName="MonitorOptions">
        <Items>
          <ext:Radio ID="MonitorAllPorts" runat="server" BoxLabel="Monitor All Ports"/>
        </Items>
    </ext:RadioGroup>
    [/CODE]
    Last edited by Daniil; May 08, 2012 at 11:26 AM. Reason: [CLOSED]
  2. #2
    Hi,

    Well, I can't see where you set up the Change event for any Radio. Also I'm not sure how you create these panels dynamically.

    Could you provide a full sample to reproduce?
  3. #3
    Ah - this works if i normalise the radiogroup into one group and add the change event on that:

    <ext:RadioGroup ID="RadioGroup2" runat="server" GroupName="PatchingOptions">
      <Items>
        <ext:Radio ID="PatchSelected" runat="server" BoxLabel="Discover Patching for selected equipment cables" Checked="true" />
          <ext:Radio ID="PatchAll" runat="server" BoxLabel="Discover Patching for entire system" />
        <ext:Radio ID="PatchUncertain" runat="server" BoxLabel="Discover Patching for recent changes" />
      </Items>
      <Listeners>
        <Change Handler="console.log(222)" />
      </Listeners>
    </ext:RadioGroup>
    Must be multiple groups with the same groupname causing issues?
  4. #4
    Please review my post. I'm still not sure what issue you are facing with the initial code.

Similar Threads

  1. [CLOSED] Can't get State-events to fire
    By Fredrik in forum 2.x Legacy Premium Help
    Replies: 3
    Last Post: May 02, 2012, 4:44 PM
  2. [CLOSED] Adding panels to a tab panel throws exception
    By RCM in forum 2.x Legacy Premium Help
    Replies: 4
    Last Post: Mar 09, 2012, 6:28 PM
  3. [CLOSED] Error on fire events on load controls
    By jeybonnet in forum 1.x Legacy Premium Help
    Replies: 13
    Last Post: Mar 23, 2011, 1:44 PM
  4. Don't fire events
    By yyyhxm1 in forum 1.x Help
    Replies: 0
    Last Post: Jun 03, 2010, 1:18 AM
  5. Fire an event For radio Button
    By Dinesh.T in forum 1.x Help
    Replies: 1
    Last Post: Nov 13, 2009, 1:40 AM

Posting Permissions