Won't Fix
Last Updated: 09 Jul 2015 07:45 by ADMIN
ADMIN
Plamen
Created on: 09 Jul 2015 07:41
Category: Menu
Type: Bug Report
0
Classic RadMenu - the custom class from the .rmLink element is removed after clicking it
 After clicking the item, the custom class is removed (the color of the item text is changed)

<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <style>
        .TopToolbarAlert, .TopToolbarAlert:link, .TopToolbarAlert:visited, .TopToolbarAlert:hover, .TopToolbarAlert:focus, .TopToolbarAlert:active {
            /*background-color: red;*/
            color: red !important;
        }
    </style>
</head>
<body>
    <form id="form1" runat="server">
        <telerik:RadScriptManager ID="RadScriptManager1" runat="server" />
        <div>
            <telerik:RadMenu runat="server" ID="toolBarMenu">
                <Items>
                    <telerik:RadMenuItem ID="toolbarAlerts" runat="server" Text="Alerts" />
                </Items>
            </telerik:RadMenu>
        </div>
    </form>
</body>
<script type="text/javascript">
    $telerik.$(document).ready(function () {
        $telerik.$("#toolbarAlerts").addClass("TopToolbarAlert");
    });
</script>
</html>
1 comment
ADMIN
Plamen
Posted on: 09 Jul 2015 07:44
RadMenu presists only the css classes that are set from the API of the control. In this case item.set_cssClass("TopToolbarAlert"); will work correctly.