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

SetFocusOnError="True"

7 Answers 200 Views
Input
This is a migrated thread and some comments may be shown as answers.
Kjell
Top achievements
Rank 1
Iron
Iron
Kjell asked on 14 Jun 2012, 08:14 AM
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.

7 Answers, 1 is accepted

Sort by
0
Vasil
Telerik team
answered on 14 Jun 2012, 11:03 AM
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.
0
Kjell
Top achievements
Rank 1
Iron
Iron
answered on 15 Jun 2012, 07:16 AM
I use the latest Q2 2012
Code does not solve the problem, the bug persists ....
0
NETMaster
Top achievements
Rank 1
answered on 15 Jun 2012, 04:07 PM
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!
0
Vasil
Telerik team
answered on 20 Jun 2012, 08:07 AM
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.
0
arnaud
Top achievements
Rank 1
answered on 09 Jul 2012, 11:24 AM
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
0
Vasil
Telerik team
answered on 12 Jul 2012, 08:40 AM
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.
0
MG-Hakan
Top achievements
Rank 2
answered on 26 Nov 2012, 09:26 PM
Set > Display=Static
IF it is not enough change SetFocusOnError to false.
Tags
Input
Asked by
Kjell
Top achievements
Rank 1
Iron
Iron
Answers by
Vasil
Telerik team
Kjell
Top achievements
Rank 1
Iron
Iron
NETMaster
Top achievements
Rank 1
arnaud
Top achievements
Rank 1
MG-Hakan
Top achievements
Rank 2
Share this question
or