This is a migrated thread and some comments may be shown as answers.

How to use rad ajax to control asp panel visible?

1 Answer 89 Views
Ajax
This is a migrated thread and some comments may be shown as answers.
Frankie
Top achievements
Rank 2
Frankie asked on 09 Jul 2008, 06:52 AM

How to use rad ajax to control asp panel visible?

 

In my .master file has these:

      <asp:ScriptManager ID="ScriptManager1" runat="server" />  

        <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">

        </telerik:RadAjaxManager>

 

=====================================================================

 

<telerik:RadAjaxManagerProxy ID="AjaxManagerProxy_BasicInfo" runat="server">

    <AjaxSettings>

        <telerik:AjaxSetting AjaxControlID="rblGroup">

            <UpdatedControls>

                <telerik:AjaxUpdatedControl ControlID="pnNewIC"></telerik:AjaxUpdatedControl>  

                <telerik:AjaxUpdatedControl ControlID="pnPoliceID"></telerik:AjaxUpdatedControl>   

            </UpdatedControls>

        </telerik:AjaxSetting> 

    </AjaxSettings>

</telerik:RadAjaxManagerProxy>

 

=====================================================================

 

<asp:RadioButtonList ID="rblGroup" runat="server"

    RepeatDirection="Horizontal" AutoPostBack="false">

</asp:RadioButtonList>

<asp:Label ID="lblManField" CssClass="redtext" runat="server"></asp:Label>

<asp:RequiredFieldValidator ID="rfvGroup" runat="server"

     ControlToValidate="rblGroup" Display="Dynamic" ValidationGroup="*"></asp:RequiredFieldValidator>

 

<asp:Panel ID="pnNewIC" runat="server">

                        <tr>    

                            <td><asp:Label ID="lblNewIC" runat="server" meta:resourcekey="lblNewIC"></asp:Label></td>

                            <td>

                               <telerik:RadMaskedTextBox ID="txtNewIC" Mask="######-##-####" MaxLength="14" Runat="server" >

                                </telerik:RadMaskedTextBox>

                                <asp:Label ID="lblManFieldNewIC" CssClass="redtext" runat="server" Visible=false></asp:Label>

                                 <asp:RequiredFieldValidator ID="rfvNewIC" runat="server"

                                     ControlToValidate="txtNewIC" Display="Dynamic" ValidationGroup="*"></asp:RequiredFieldValidator>

                                <asp:RegularExpressionValidator ID="revNewIC" runat="server" Display="Dynamic"

                                    ControlToValidate="txtNewIC" meta:resourcekey="revNewIC" ValidationExpression="^[0-9]\d{5}-\d{2}-\d{4}$"></asp:RegularExpressionValidator>    

                            </td>

                        </tr>

                    </asp:Panel>

                    <asp:Panel ID="pnPoliceID" runat="server" Visible="false">

                        <tr>

                            <td><asp:Label ID="lblPoliceID" runat="server" meta:resourcekey="lblPoliceID"></asp:Label></td>

                            <td>

                                <GS:RequiredInput ID="txtPoliceID" runat="server" />

                            </td>

                        </tr>

                    </asp:Panel>

1 Answer, 1 is accepted

Sort by
0
Vlad
Telerik team
answered on 09 Jul 2008, 08:12 AM
Hi Frankie,

Please check this example:
http://www.telerik.com/DEMOS/ASPNET/Prometheus/Ajax/Examples/Common/ShowingWebControls/DefaultCS.aspx

Sincerely yours,
Vlad
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
Tags
Ajax
Asked by
Frankie
Top achievements
Rank 2
Answers by
Vlad
Telerik team
Share this question
or