background- color : selected item

4 posts, 0 answers
  1. Loyal User
    Loyal User avatar
    37 posts
    Member since:
    Apr 2012

    Posted 23 Jul 2014 Link to this post

    hi,

    how to set a background color for selected item only,
    i tried with multiple codes but the original background-image didn't be override.
  2. Princy
    Princy avatar
    17421 posts
    Member since:
    Mar 2007

    Posted 23 Jul 2014 in reply to Loyal User Link to this post

    Hi,

    Try the below CSS which works fine at my end.

    CSS:
    .RadMenu_Default a.rmSelected
    {
        background-color: Red !important;
    }
    .RadMenu_Default .rmGroup a.rmSelected .rmText
    {
        background-image: none !important;
        background-color: Red !important;
    }

    Thanks,
    Princy.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Loyal User
    Loyal User avatar
    37 posts
    Member since:
    Apr 2012

    Posted 23 Jul 2014 Link to this post

    it doesn't work , the radmenu.png background-image still exists
  5. Princy
    Princy avatar
    17421 posts
    Member since:
    Mar 2007

    Posted 23 Jul 2014 in reply to Loyal User Link to this post

    Hi,

    Unfortunately I couldn't replicate the issue at my end. Please have a look into the sample code snippet which works fine at my end.

    ASPX:
    <telerik:RadMenu ID="rmenuDemo" runat="server" ClickToOpen="true">
        <Items>
            <telerik:RadMenuItem Text="Item1">
                <Items>
                    <telerik:RadMenuItem Text="Item1.1">
                    </telerik:RadMenuItem>
                </Items>
            </telerik:RadMenuItem>
            <telerik:RadMenuItem Text="Item2">
            </telerik:RadMenuItem>
        </Items>
    </telerik:RadMenu>

    CSS:
    .RadMenu_Default a.rmSelected
    {
        background-color: Red !important;
    }
    .RadMenu_Default .rmGroup a.rmSelected .rmText
    {
        background-image: none !important;
        background-color: Red !important;
    }

    Thanks,
    Princy.
Back to Top