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

RadButton not responding after validation error in radpopup

1 Answer 66 Views
Button
This is a migrated thread and some comments may be shown as answers.
Umair
Top achievements
Rank 1
Umair asked on 23 Mar 2011, 10:12 AM
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

1 Answer, 1 is accepted

Sort by
0
Pero
Telerik team
answered on 23 Mar 2011, 02:32 PM
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
Tags
Button
Asked by
Umair
Top achievements
Rank 1
Answers by
Pero
Telerik team
Share this question
or