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

ImageUrl and App_Themes

4 Answers 155 Views
Menu
This is a migrated thread and some comments may be shown as answers.
Eric Schoenholzer
Top achievements
Rank 2
Eric Schoenholzer asked on 24 Jan 2008, 03:16 PM
Is there a way to define the ImageUrl property of the menu depending on the selected theme?

..   ImageUrl

="Images/16x16/Activity.gif">  
doesn't get the image from the theme folder and defining the path as "~/App_Themes/MSCRM12/Images/Activity.gif" isn't the best way.

I would like to use them as 'global images' and not specific to a control (like themeing of a control).

Thanks
Eric

4 Answers, 1 is accepted

Sort by
0
T. Tsonev
Telerik team
answered on 25 Jan 2008, 04:24 PM
Hello Eric Schoenholzer,

I agree that it would be very useful indeed. We have done some research, but it is not very clear how it should be implemented. The standard ASP.NET menu control does not support it either. We will log it and do some additional research, but for the moment we cannot think of a solution.

Best wishes,
Tsvetomir Tsonev
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
L Lodder
Top achievements
Rank 1
answered on 11 Jun 2009, 09:39 AM
Is there any progress on this issue?
0
Paul
Telerik team
answered on 11 Jun 2009, 11:03 AM
Hi L Lodder,

I'm afraid we don't have any progress on the matter.

Regards,
Paul
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
Jon
Top achievements
Rank 1
answered on 10 Jul 2009, 11:37 AM
There is a way to do this.  Simply set the relevant menu icon's imageurl from the codebehind in the pageload sub.

In the example below my menu is the uxRadMenu and I'm setting the first entry in the menu to the AddNewRecord icon and the last entry in the menu to the Refresh icon.  I have a variable storing the current Theme name, imaginatively called Theme.

Hope the example helps.

Regards,

Jon

uxRadMenu.Items(0).ImageUrl = Page.ClientScript.GetWebResourceUrl(GetType(RadGrid), "Telerik.Web.UI.Skins." & Theme & ".Grid.AddRecord.gif")  
uxRadMenu.Items(uxRadMenu.Items.Count - 1).ImageUrl = Page.ClientScript.GetWebResourceUrl(GetType(RadGrid), "Telerik.Web.UI.Skins." & Theme & ".Grid.Refresh.gif"

Tags
Menu
Asked by
Eric Schoenholzer
Top achievements
Rank 2
Answers by
T. Tsonev
Telerik team
L Lodder
Top achievements
Rank 1
Paul
Telerik team
Jon
Top achievements
Rank 1
Share this question
or