Radtextbox and Requiredvalidator problem

3 posts, 0 answers
  1. shunman
    shunman avatar
    77 posts
    Member since:
    Jul 2011

    Posted 03 Apr 2012 Link to this post

    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">
        <telerik:RadStyleSheetManager id="RadStyleSheetManager1" runat="server" />
        <form id="form1" runat="server">
        <telerik:RadScriptManager ID="RadScriptManager1" runat="server">
                <%--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" />
        <script type="text/javascript">
            //Put your JavaScript code here.
        <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
        <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>
        <asp:RequiredFieldValidator ID="RequiredFieldValidatorRadTextBoxPrice" runat="server"
        Display="None" SetFocusOnError="true" ErrorMessage="" ControlToValidate="textbox1"
        <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server"
        Display="None" SetFocusOnError="true" ErrorMessage="" ControlToValidate="textbox2"
        <asp:ValidationSummary ID="ValidationSummarySave" runat="server" ShowSummary="false"
        ShowMessageBox="true" ValidationGroup="Product" />

  2. Iana Tsolova
    Iana Tsolova avatar
    3388 posts

    Posted 06 Apr 2012 Link to this post


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

    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.
  3. shunman
    shunman avatar
    77 posts
    Member since:
    Jul 2011

    Posted 06 Apr 2012 Link to this post

    Hello Telerik.
    I updated  internal build version
    The problem has been solved with another question.
    thanks for reply
Back to Top