Handle Radmenuitem Click event

3 posts, 0 answers
  1. parthavi h
    parthavi h avatar
    6 posts
    Member since:
    May 2010

    Posted 23 Sep 2010 Link to this post


    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">
                        <radM:RadMenuItem Text="SignOut" ImageUrl="../images/SignOut.gif" />
                        <radM:RadMenuItem id = "RadLanguageOptionMenu" Text="Set my language preference" ImageUrl="../images/MyProfile.gif" /> 
                                 <radM:RadMenuItem Text="fr-FR"  /> 
                                 <radM:RadMenuItem Text="en-US"  /> 

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

    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,

  2. Yana
    Yana avatar
    5027 posts

    Posted 24 Sep 2010 Link to this post

    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,
    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
  3. parthavi h
    parthavi h avatar
    6 posts
    Member since:
    May 2010

    Posted 18 Oct 2010 Link to this post

    Oh ok. Thanks so much.
Back to Top