Change font color for 1 item only

3 posts, 1 answers
  1. Darren
    Darren avatar
    72 posts
    Member since:
    Oct 2006

    Posted 25 Feb 2014 Link to this post

    Is it possible to change the font color for just one item in the rad menu. I want a specific item to always stand out. Thanks.
  2. Answer
    Shinu
    Shinu avatar
    17764 posts
    Member since:
    Mar 2007

    Posted 25 Feb 2014 in reply to Darren Link to this post

    Hi Darren,

    Please try the following code snippet to change the font color of one RadMenuItem.

    JavaScript:
    <script type="text/javascript">
        function pageLoad() {
            var menu = $find("<%=RadMenu1.ClientID %>");
            //access the item
            menu.findItemByText("Item1").set_cssClass("demo");
        }
    </script>

    CSS:
    <style type="text/css">
        .ChangeColor
        {
            color: Red !important;
        }
    </style>

    Thanks,
    Shinu.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Darren
    Darren avatar
    72 posts
    Member since:
    Oct 2006

    Posted 26 Feb 2014 in reply to Shinu Link to this post

    Worked perfectly. Thank you!
Back to Top