Unplanned
Last Updated: 27 Jun 2025 12:59 by Aron Calder
Aron Calder
Created on: 27 Jun 2025 12:59
Category: Button
Type: Bug Report
0
OnClick event of the Button is not triggered when a CompareValidator and AjaxManager are no the page

When a CompareValidator is on the page alongside a RadButton with SubmitBehavior and RadAjaxManager, clicking Enter on the ControlToValidate doesn't trigger the OnClick event of the Button: 

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

<telerik:RadTextBox ID="txtSearch" runat="server" MaxLength="25" Width="100%" InputType="Number"></telerik:RadTextBox>
<asp:CompareValidator ID="cmpDataType" runat="server" ControlToValidate="txtSearch" Operator="DataTypeCheck" Type="Integer" Display="Dynamic" Text="Value must be integer" ValidationGroup="SearchGroup"></asp:CompareValidator>

<telerik:RadButton ID="btnSearch" runat="server" Text="Search" Primary="true" OnClick="btnSearch_Click" UseSubmitBehavior="true" ValidationGroup="SearchGroup"></telerik:RadButton>
<%--<asp:Button Text="Search" runat="server" UseSubmitBehavior="true" ValidationGroup="SearchGroup" OnClick="btnSearch_Click" />--%>
protected void btnSearch_Click(object sender, EventArgs e)
{
    Response.Write("Search button clicked!");
}

The behavior works fine with a regular ASP Button

 

 

0 comments