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

Using CSS or Skin for Menu in C# dynamically

2 Answers 118 Views
Menu
This is a migrated thread and some comments may be shown as answers.
Aamir
Top achievements
Rank 1
Aamir asked on 17 Jul 2008, 05:30 AM
Hi,

I have created a red menu dynamically in *.ascx.

How can i apply CSS or Skin in user control ( *.ascx.cs )? Can you give me working C# example of it.

As documentation say, i made enableEmbadedSkin="False" .... and try to run code like that 

<telerik:RadMenu ID="RedMenuControl" Skin="RadControls/Skins/Inox/Menu.Inox.css"  EnableEmbeddedSkins="false" runat="server">

</telerik:RadMenu>

C# code
---------

ParentMenuItem =

new RadMenuItem();

ParentMenuItem.CssClass =

"rmRootGroup";

ParentMenuItem.Text = "Name";

RedMenuControl.Items.Add(ParentMenuItem);




How would i use all feature (rollover, color, images etc)  of style by using C# as i am creating "user Control".

Please send me response ASAP, my project is stuckup because of this menu.

Hope to hear you fast.

Aamir

2 Answers, 1 is accepted

Sort by
0
Accepted
Yana
Telerik team
answered on 17 Jul 2008, 12:52 PM
Hi Aamir,

Thank you for contacting us.

Please find attached a sample project which shows how to apply css and skins to RadMenu in a user control. 
Download it and give it at try. You could read about custom skins here and css selectors here.


Kind regards,
Yana
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Aamir
Top achievements
Rank 1
answered on 21 Jul 2008, 07:44 AM
Thanks for providing me ONTIME support. I fix the issue.
Tags
Menu
Asked by
Aamir
Top achievements
Rank 1
Answers by
Yana
Telerik team
Aamir
Top achievements
Rank 1
Share this question
or