Using CSS or Skin for Menu in C# dynamically

3 posts, 1 answers
  1. Aamir
    Aamir avatar
    19 posts
    Member since:
    Jul 2008

    Posted 17 Jul 2008 Link to this post

    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. Answer
    Yana
    Admin
    Yana avatar
    4985 posts

    Posted 17 Jul 2008 Link to this post

    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
  3. Aamir
    Aamir avatar
    19 posts
    Member since:
    Jul 2008

    Posted 21 Jul 2008 Link to this post

    Thanks for providing me ONTIME support. I fix the issue.
Back to Top