show hide image on menuitem click

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

    Posted 23 Sep 2010 Link to this post


    I have this following heirarchy  of menus
    <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="<%$ Resources:,res:home_login_login_to_factnet%>" 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" />

    Need to show a 'checkmark' image besides the menuitem ('fr-FR' or 'en-US') itself, indicating that particular item is selected ; if the user clicks on 'fr-FR' or 'en-US'. And hide the image if the user clicks on another menu-item (other than the one that is selected)

    Kindly assist.

  2. Answer
    Yana avatar
    5030 posts

    Posted 28 Sep 2010 Link to this post

    Hello parthavi,

    You can set ImageUrl for the needed item ('fr-FR' or 'en-US') in ItemClick event handler. In order to remove then the image, you should set ImageUrl to an empty string.

    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

    Yes, Thank you. The ImageURL does work. But the problem here was with the skin that i was using. It was not displaying the image and text on it. It would do so only if we hover over the control (here the list).

    I changed the skin. Its working fine now.

    Thanks a lot.
Back to Top