[CLOSED] Hiding Panel on Radio Button Click

  1. #1

    [CLOSED] Hiding Panel on Radio Button Click

    I'm trying to hide a panel (and show another one) depending which radio button is selected. I've tried the Ajax method but that didnt work, so I've tried a listener but that didnt work either, any ideas?


      <ext:Panel ID="Panel1" runat="server" Border="false">
        <Body>
          <ext:RadioGroup ID="RadioGroup1" runat="server" ItemCls="x-check-group-base" FieldLabel="Auto Layout">
            <Items>
              <ext:Radio ID="rdoFollowOnReview" runat="server" BoxLabel="Follow on Review" Checked="true" />
              <ext:Radio ID="rdoClose" runat="server" BoxLabel="Close SD Record" />
            </Items>
            <Listeners>
              <Change Handler="#{pnlFollowOnReview}.Visible == #{rdoFollowOnReview}.Checked;" />
            </Listeners>
          </ext:RadioGroup>
          
          <ext:Panel runat="server" ID="pnlFollowOnReview">
            <Body>
              <ext:DateField ID="dteNextReviewDate" Width="295" runat="server" />
            </Body>
          </ext:Panel>
          
          <ext:Panel runat="server" ID="pnlClosed1">
            <Body>
              <ext:DateField ID="dteDateClosed" Width="295" runat="server" />
            </Body>
          </ext:Panel>
        </Body>
       </ext:Panel>
  2. #2

    RE: [CLOSED] Hiding Panel on Radio Button Click

    Solved it myself.

    Use .Hide() and .Show() not Visible.



  3. #3

    RE: [CLOSED] Hiding Panel on Radio Button Click

    You should be able to set the .Hidden property as well.

    Hope this helps.

    Geoffrey McGill
    Founder

Similar Threads

  1. Replies: 3
    Last Post: Aug 12, 2011, 5:56 PM
  2. [CLOSED] How to resize a panel depending of radio button BoxLabels length?
    By flormariafr in forum 1.x Legacy Premium Help
    Replies: 4
    Last Post: Aug 09, 2010, 1:59 PM
  3. Replies: 0
    Last Post: Apr 06, 2010, 10:01 AM
  4. [CLOSED] Radio button group click event
    By CSG in forum 1.x Legacy Premium Help
    Replies: 1
    Last Post: Dec 02, 2009, 6:53 AM
  5. [CLOSED] Radio button click event,
    By Etisbew in forum 1.x Legacy Premium Help
    Replies: 1
    Last Post: Sep 02, 2009, 7:56 AM

Posting Permissions