Feb 26, 2010, 11:52 AM
[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>