<%@ Page Language="VB" AutoEventWireup="false" CodeBehind="Default.aspx.vb" Inherits="RadControlsWebApp3._Default" %><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head runat="server"> <title></title> <telerik:RadStyleSheetManager ID="RadStyleSheetManager1" runat="server" /></head><body> <form id="form1" runat="server"> <telerik:RadScriptManager ID="RadScriptManager1" runat="server"> <Scripts> <%--Needed for JavaScript IntelliSense in VS2010--%> <%--For VS2008 replace RadScriptManager with ScriptManager--%> <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.Core.js" /> <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.jQuery.js" /> <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.jQueryInclude.js" /> </Scripts> </telerik:RadScriptManager> <script type="text/javascript"> //Put your JavaScript code here. </script> <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server"> </telerik:RadAjaxManager> <div> press enter key when the textbox has focus with empty string. <telerik:RadTextBox runat="server" ID="TextBox1" > </telerik:RadTextBox> <telerik:RadButton runat="server" ID="Button1" Text="do not click" UseSubmitBehavior="true"></telerik:RadButton> <asp:Label runat="server" ID="label1"></asp:Label> </div> <asp:RequiredFieldValidator ID="RequiredFieldValidatorTextBox1" runat="server" Display="None" SetFocusOnError="true" ErrorMessage="please type anything." ControlToValidate="TextBox1" ValidationGroup="test1"></asp:RequiredFieldValidator> <asp:ValidationSummary ID="ValidationSummarySave" runat="server" ShowSummary="false" ShowMessageBox="true" ValidationGroup="test1" /> </form></body></html>I have a problem with RadButton UseSubmitBehavior property.
I put the RadTextbox and RequiredValidator control.
and set the UseSubmitBehavior ="true" on the Radbutton.
when radtextbox is empty and i press enter key, the radbutton is not submitted like automatically click
i'm using latest telerik hotfix version ( 2012.1.320.40) and I had no problem since previous telerik version (2011.915)
please let me know how to solve this problem.
i'm attaching sample code.