How to use rad ajax to control asp panel visible?

2 posts, 0 answers
  1. Frankie
    Frankie avatar
    9 posts
    Member since:
    Jan 2008

    Posted 09 Jul 2008 Link to this post

    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>

  2. Vlad
    Admin
    Vlad avatar
    11100 posts

    Posted 09 Jul 2008 Link to this post

    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
Back to Top