RadButton not responding after validation error in radpopup

2 posts, 0 answers
  1. Umair
    Umair avatar
    1 posts
    Member since:
    Mar 2011

    Posted 23 Mar 2011 Link to this post

    Hi guys,
    I have a simple textfield (with required field validatior) and a radbutton in a RadPopup. and on button_click require field validation occurs, when i type text in the textfield the validation error message disappears but the button does not respond. Does anybody have a solution for that..

    Thank you for the time.

    Regards,
    Umair Mehmood
  2. Pero
    Admin
    Pero avatar
    1156 posts

    Posted 23 Mar 2011 Link to this post

    Hello Umair,

    I tested the following code locally, and everything seems to be working correctly. Could you please provide a sample project showing the issue?
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <head runat="server">
        <title></title>
    </head>
    <body>
        <form id="form1" runat="server">
        <asp:ScriptManager ID="RadScriptManager1" runat="server">
        </asp:ScriptManager>
        <script type="text/javascript">
            function OnClientClicked(button, args)
            {
                alert("Clicked is fired!");
            }
        </script>
        <div>
            <telerik:RadWindow ID="RadWindow1" runat="server" VisibleOnPageLoad="true">
                <ContentTemplate>
                    <asp:TextBox ID="Textbox1" runat="server" /><asp:RequiredFieldValidator ID="Requiredfieldvalidator1"
                        ErrorMessage="The field is required" ControlToValidate="TextBox1" runat="server" ForeColor="Red" />
                    <br />
                    <br />
                    <telerik:RadButton ID="RadButton1" runat="server" Text="Validate" OnClientClicked="OnClientClicked"
                        OnClick="RadButton1_Click">
                    </telerik:RadButton>
                </ContentTemplate>
            </telerik:RadWindow>
        </div>
        </form>
    </body>
    </html>

    using System;
     
    public partial class Default : System.Web.UI.Page
    {
        protected void RadButton1_Click(object sender, EventArgs e)
        {
            RadButton1.Text = "Server-side click!";
        }
    }


    Greetings,
    Pero
    the Telerik team
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top