Completed
Last Updated: 13 Nov 2014 15:24 by ADMIN
Łukasz
Created on: 25 Jul 2013 15:37
Category: SearchBox
Type: Bug Report
0
RadSearchBox.Focus() doesn't work in Internet Explorer
RadSearchBox.Focus() doesn't work in Internet Explorer. It works correctly in different browsers (Firefox, Chrome). Attached project shows the problem. 
Attached Files:
3 comments
ADMIN
Aneliya Petkova
Posted on: 13 Nov 2014 15:24
Hello,

I am glad to inform you that the issue is resolved and the fix will be available in Q3 2014 SP1 release.

Regards,
Aneliya Petkova 
Elena
Posted on: 14 Aug 2013 13:58
Use the following as a workaround :

ScriptManager1.SetFocus(RadSearchBox1.ClientID + "_Input");

to focus the control in IE.
Łukasz
Posted on: 25 Jul 2013 19:18
The problem lies in "WebForm_AutoFocus" function. There is a line:

targetControl = document.all[focusId];

It rehutns HTMLCollection. "targetControl" is later passed to "WebForm_FindFirstFocusableChild" function (as "control" parameter), which contains this code:

if (!control || !(control.tagName)) {
    return null;
} 

"!(control.tagName)" is true, so this function returns null, instead of HTML input element.

RadSearchBox needs to be rendered differently to be handled properly by WebForm_AutoFocus.