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

Client-Side focus and IE8

3 Answers 49 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
Phil
Top achievements
Rank 2
Phil asked on 14 Jun 2010, 07:26 PM
Hi All:

I have another post, per setting focus on a combo-box:
http://www.telerik.com/community/forums/aspnet-ajax/combobox/client-side-focus-on-radcombobox.aspx
Either solution works in IE8 under Visual Studio, but once deployed to my development website, then it stops working.
My users need IE, because of SQL Server Reporting Services printing features only available with IE. 
So what is happening with IE8?

Phil

3 Answers, 1 is accepted

Sort by
0
Simon
Telerik team
answered on 15 Jun 2010, 09:24 AM
Hi Phil,

This most probably happens because the Browser/Document Mode when you are viewing the page on localhost differs from when you are viewing it it through a public URL. We have encountered similar issues before and in most of the cases they are caused by some issue in the IE8 browser.

In your case, I suggest you focus the RadComboBox with a small delay, just to make sure the browser has enough time to process the focusing operation:

function SetComboBoxFocus(clientId) {
    setTimeout(function() {
        $find(clientId).get_inputDomElement().focus();
    }, 0);
}

If this timeout duration does not help, please try increasing it: 10, 20, 50 then 100 and so on.

If this does not help, please send me a simple page which exhibits the described behavior - works on localhost and not on a public URL. I will debug it on my side and will provide you with another solution or workaround.

Kind regards,
Simon
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
0
Phil
Top achievements
Rank 2
answered on 16 Jul 2010, 03:01 PM
Hi:
You said:
This most probably happens because the Browser/Document Mode when you are viewing the page on localhost differs from when you are viewing it it through a public URL.

I believe you are referencing:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
What is the best document mode for Telerik?
Phil
0
Simon
Telerik team
answered on 16 Jul 2010, 04:57 PM
Hi Phil,

You can put the following meta element on your page to make it work in IE8 Compatibility View:
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />

(Please read more about IE8's Compatibility View here.)

In any case, does the workaround I gave you earlier resolve the issue?

All the best,
Simon
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
ComboBox
Asked by
Phil
Top achievements
Rank 2
Answers by
Simon
Telerik team
Phil
Top achievements
Rank 2
Share this question
or