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

Menu is not highlighted ..?

3 Answers 62 Views
Menu
This is a migrated thread and some comments may be shown as answers.
sudhakar
Top achievements
Rank 1
sudhakar asked on 31 May 2011, 09:57 AM
Hi Telerik Team,
 
I am using Radmenu to display the menu items on the application using following code:
The color higlighted is yellow for the selected Menu item.

Problem Description: When I open one more window from my application (this is one of the menu item to open new window), the selected Menu item is highlighted and happens only in New Window but the old window never highlights again with yellow color and remains white color as usual for all menus.

Please help me on the below problem. I pasted the code what i am using.

<style type="text/css">
        .RadMenu_MenuDefault a.rmSelected
        {
            color: Yellow;
        }
        .clickedP
        {
            color: Yellow;
        }
    </style>
  
  
<telerik:RadMenu ID="rmstabmenu" runat="server" Skin="Black" width: 100%; position: absolute;" 
OnClientItemClicking="OnClientItemClicking" CssClass="RadMenu_MenuDefault"  >
      <Items>
<telerik:RadMenuItem Text="Home"></telerik:RadMenuItem>
      </Items>
</telerik:RadMenu>
  
 function OnClientItemClicking(sender, args)
{
     var item = args.get_item();
     var itemtext = item.get_text();
     getText(itemtext)    ///This picks path for diff menu items
      return;
}
 

3 Answers, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 31 May 2011, 11:52 AM
Hello Sudhakar,

In order to over ride the default CSS style please use !important modifier.
CSS:
.RadMenu_MenuDefault a.rmSelected
        {
            color: Yellow !important;
        }

Thanks,
Shinu.
0
sudhakar
Top achievements
Rank 1
answered on 01 Jun 2011, 03:29 AM
Hi Shinu,
 
Thankyou ..!!

Regards
Sudhakar



0
sudhakar
Top achievements
Rank 1
answered on 03 Jun 2011, 05:22 AM
Hi Shinu,

Similar with above situation,  Please help to solve the  problem:

Problem Description: As mentioned that application opens one more window on the menu click with window.open("homepage.aspx"),  but now the user logsout from one window and other window still open.

So how to auto close all the open windows before user can login on new screen / window...??

Regards
Sudhakar

Tags
Menu
Asked by
sudhakar
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
sudhakar
Top achievements
Rank 1
Share this question
or