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

Handle Radmenuitem Click event

2 Answers 1032 Views
Menu
This is a migrated thread and some comments may be shown as answers.
parthavi h
Top achievements
Rank 1
parthavi h asked on 23 Sep 2010, 01:11 PM

Hi,

I visited the foll link http://www.telerik.com/community/forums/aspnet-ajax/menu/radmenuitem-onclient-events-anyone.aspx and realized that there are no click events for radmenuitems.

Following is the heirarchy of my menu items i need to handle click events for


<div style="color:Black">
    <radM:RadMenu ID="RadMenu1" runat="server"  OnClientLoad="onClientLoad" EnableEmbeddedSkins="False"  Skin="Outlook"  
        OnClientItemClosing="onClientItemClosing" EnableRoundedCorners="true" OnItemClick="RadMenu1_ItemClick">
        <Items >
            <radM:RadMenuItem id = "lblWelcome" GroupSettings-Flow="Vertical">
                <Items>
                    <radM:RadMenuItem Text="SignOut" ImageUrl="../images/SignOut.gif" />
                    <radM:RadMenuItem id = "RadLanguageOptionMenu" Text="Set my language preference" ImageUrl="../images/MyProfile.gif" /> 
                                <items>
                             <radM:RadMenuItem Text="fr-FR"  /> 
                             <radM:RadMenuItem Text="en-US"  /> 

                                <items> 
                    <radM:RadMenuItem Text="My Profile" ImageUrl="../images/MyProfile.gif" GroupSettings-Flow="Vertical" />
                </Items>
            </radM:RadMenuItem>
        </Items>
    </radM:RadMenu>
</div>

1. Signout : onclicking signout it should navigate to home.aspx
2. for items (fr-FR, en-US etc) of "Select my language perference" on clicking fr-FR etc i need to display an icon besides it.


Kindly assist at your earliest.
Thank you,
Parthavi

2 Answers, 1 is accepted

Sort by
0
Yana
Telerik team
answered on 24 Sep 2010, 10:09 AM
Hello parthavi,

You've already subscribed to OnItemClick event, so you just need to check the clicked item in its handler as shown here. You can also use the client-side events - OnClientItemClicking and OnClientItemClicked.

Best wishes,
Yana
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
parthavi h
Top achievements
Rank 1
answered on 18 Oct 2010, 07:17 AM
Oh ok. Thanks so much.
Tags
Menu
Asked by
parthavi h
Top achievements
Rank 1
Answers by
Yana
Telerik team
parthavi h
Top achievements
Rank 1
Share this question
or