SetFocusOnError="True"

8 posts, 0 answers
  1. Kjell
    Kjell avatar
    203 posts
    Member since:
    May 2011

    Posted 14 Jun 2012 Link to this post

    I use asp:requiredfieldvalidator to validate RadTextBox.
    Big problem if i use requiredfieldvalidator and set SetFocusOnError="True" to validate the RadTextBox in Chrome and Safari.
    No problem in Explorer and Firefox
    If I type in the RadTextBox and go to the next cleared what I wrote and Empty Message is displayed instead.
  2. Vasil
    Admin
    Vasil avatar
    1547 posts

    Posted 14 Jun 2012 Link to this post

    Hi Kjell,

    What version of the controls do you use?

    Try to put this code just under the script manager on your page:
    <script type="text/javascript">
        Telerik.Web.UI.RadInputControl.prototype._onTextBoxKeyDownHandler = function (e)
        {
            if ((e.keyCode == 13 || e.keyCode == 9) && !this.isMultiLine())
            {
                this._updateHiddenValue();
            }
     
            if (e.keyCode == 27 && !$telerik.isIE)
            {
                var that = this;
                window.setTimeout(function ()
                { that.set_textBoxValue(that.get_editValue()); }, 0);
            }
        }
    </script>


    All the best,
    Vasil
    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. UI for ASP.NET Ajax is Ready for VS 2017
  4. Kjell
    Kjell avatar
    203 posts
    Member since:
    May 2011

    Posted 15 Jun 2012 Link to this post

    I use the latest Q2 2012
    Code does not solve the problem, the bug persists ....
  5. NETMaster
    NETMaster avatar
    9 posts
    Member since:
    Aug 2012

    Posted 15 Jun 2012 Link to this post

    I have EXACTLY the same problem using Q2 2012.  The problem DID NOT exist in the previous versions.  This is a NEW bug, and makes the new release unusable!
  6. Vasil
    Admin
    Vasil avatar
    1547 posts

    Posted 20 Jun 2012 Link to this post

    Hi,

    The problem is already fixed and you would be able to download a hotfix for it next week.

    Regards,
    Vasil
    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.
  7. arnaud
    arnaud avatar
    104 posts
    Member since:
    Jul 2008

    Posted 09 Jul 2012 Link to this post

    Hi,

    Most of the time I must said that Telerik is doing a great job.

    However, THIS IS A MAJOR BUG.

    You should have communicated a lot more about it. I'm not going to check every day if my users can login or register to my site and actually they couldn't. If I must check issues like a simple SetFocusOnError = "True" every day, then I can spend my lifetime to do it.

    We are dealing with thousands users/day and chrome + safari couldn't even log ? I'm very unpleased with the situation.

    A bug is possible and can happen but we are not talking about calendar skin issue. It should have been posted somewhere in an obvious place and not here (thanks to you Kjell) or in the middle of an hotfix note.


    Regards,
    Arnaud
  8. Vasil
    Admin
    Vasil avatar
    1547 posts

    Posted 12 Jul 2012 Link to this post

    Hi Arnaud,

    Since a bug can manifest in different ways depending on custom scenarios it would be very hard to document and publish possible troubles that can be caused by same issue.
    There ware two related issues caused by the same bug, and it was logged into PITS after it was confirmed and was fixed as soon as possible. Nevertheless SetFocusOnError is property of control that is not part of our suite, and the more general representation of the problem was published in PITS.

    All the best,
    Vasil
    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.
  9. Gokhan
    Gokhan avatar
    3 posts
    Member since:
    Oct 2012

    Posted 26 Nov 2012 Link to this post

    Set > Display=Static
    IF it is not enough change SetFocusOnError to false.
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017