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

Change font color for 1 item only

2 Answers 67 Views
Menu
This is a migrated thread and some comments may be shown as answers.
Darren
Top achievements
Rank 1
Darren asked on 25 Feb 2014, 09:19 PM
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 Answers, 1 is accepted

Sort by
0
Accepted
Shinu
Top achievements
Rank 2
answered on 26 Feb 2014, 03:15 AM
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.
0
Darren
Top achievements
Rank 1
answered on 26 Feb 2014, 02:56 PM
Worked perfectly. Thank you!
Tags
Menu
Asked by
Darren
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Darren
Top achievements
Rank 1
Share this question
or