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

Problem loading an image instead of a page

1 Answer 69 Views
Window
This is a migrated thread and some comments may be shown as answers.
Clive Hoggar
Top achievements
Rank 1
Clive Hoggar asked on 15 Apr 2010, 04:35 PM
HI

I am trying to use the RadWindow to show a larger version of an image on the page.
However I am getting different results in IE8 and Firefox3.

(I am using skin Black):

1 ) Title
In Firefox, the title bar displays the image filename, not the Title specified in RadWindow
settings (and there is no page to load where I could specify the page title.)
IE displays it correctly

2 ) Window backgound
In IE, the window background is white so I get a white border round the image, but Firefox does it correctly as Black

How can I fix these anomalies?

Thanks for any help!

Clive

Thanks

Clive

1 Answer, 1 is accepted

Sort by
0
Georgi Tunev
Telerik team
answered on 20 Apr 2010, 03:13 PM
Hi Clive,

Straight to your questions:
  1. This is due to the way browsers work. Since the image file is not a page, it does not have a title and Firefox forces the image's name to be shown in RadWindow's titlebar. You can avoid this by setting the title of the dialog in OnClientShow (a small timeout may be needed).
  2. The behavior is actually due to a problem with RadWindow's black skin and we are working on fixing it - IE shows the expected behavior. If, however you want to change the iframe's background in IE as well, I suggest to use the following code (hooked to the OnClientShow property)
function OnClientShow(sender,args)
{
    window.setTimeout(function()
    {
        sender.get_contentFrame().contentWindow.document.body.style.backgroundColor = "Black";
    }, 0);
 }

Regards,
Georgi Tunev
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
Window
Asked by
Clive Hoggar
Top achievements
Rank 1
Answers by
Georgi Tunev
Telerik team
Share this question
or