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

Radtextbox and Requiredvalidator problem

2 Answers 108 Views
Input
This is a migrated thread and some comments may be shown as answers.
shunman
Top achievements
Rank 1
shunman asked on 04 Apr 2012, 02:51 AM
Hello  telerik team.
I'm using radtextbox with required validator.
and there has a problem at the google chrome(version 18.0.1025.142 m)

When I selected all text in the radtextbox and delete ( ex: press "del" key or backspace key)
and move focus to any other controls.

then the deleted text was recovered.
and i found this problem related in SetFocusOnError property when value is "true"

I'm using latest 2012.1.403.40 version.

please check my code for any mistakes
<%@ Page Language="VB" AutoEventWireup="false" CodeBehind="Default.aspx.vb" Inherits="RadControlsWebApp5._Default" %>
 
<!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>
    <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>
    <telerik:RadTextBox runat="server" ID="textbox1" SelectionOnFocus="SelectAll" text="please delete me"></telerik:RadTextBox>
    <telerik:RadTextBox runat="server" ID="textbox2" SelectionOnFocus="SelectAll" text="please delete me"></telerik:RadTextBox>
    </div>
 
    <asp:RequiredFieldValidator ID="RequiredFieldValidatorRadTextBoxPrice" runat="server"
    Display="None" SetFocusOnError="true" ErrorMessage="" ControlToValidate="textbox1"
></asp:RequiredFieldValidator>
    <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server"
    Display="None" SetFocusOnError="true" ErrorMessage="" ControlToValidate="textbox2"
></asp:RequiredFieldValidator>
    <asp:ValidationSummary ID="ValidationSummarySave" runat="server" ShowSummary="false"
    ShowMessageBox="true" ValidationGroup="Product" />
    </form>
</body>
</html>


2 Answers, 1 is accepted

Sort by
0
Iana Tsolova
Telerik team
answered on 06 Apr 2012, 11:32 AM
Hello,

Can you try setting EnableSingleInputRendering property for both RadTextBox controls to false and let us know if the issue persists?

Greetings,
Iana Tsolova
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
0
shunman
Top achievements
Rank 1
answered on 06 Apr 2012, 04:02 PM
Hello Telerik.
I updated  internal build version
The problem has been solved with another question.
thanks for reply
Tags
Input
Asked by
shunman
Top achievements
Rank 1
Answers by
Iana Tsolova
Telerik team
shunman
Top achievements
Rank 1
Share this question
or