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

Set ImageUrl in web.config

1 Answer 166 Views
Window
This is a migrated thread and some comments may be shown as answers.
Dennis
Top achievements
Rank 1
Dennis asked on 05 Nov 2008, 03:12 PM
Is there a way to set the imageurl in the web config so it applies to all radwindows and radspell dialogs?  I don't want to update every radwindow/radwindowmanager tag to do this.  I noticed if you set the image url to a non valid image, no image appears.  Is that the proper way to hide the image?

1 Answer, 1 is accepted

Sort by
0
Accepted
Georgi Tunev
Telerik team
answered on 10 Nov 2008, 03:10 PM
Hi Dennis,

You can do this by adding the image to the appSettings section:
<appSettings>
    <add key="commonImage" value="~/Img/MyIcon.gif" />
</appSettings>


And then set it on the server:

RadWindowManager1.IconUrl = System.Configuration.ConfigurationManager.AppSettings["commonImage"];


Regards,
Georgi Tunev
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
Window
Asked by
Dennis
Top achievements
Rank 1
Answers by
Georgi Tunev
Telerik team
Share this question
or