How to display an IMAGE on the left side of the RAD MENU

4 posts, 0 answers
  1. Ajay
    Ajay avatar
    66 posts
    Member since:
    May 2009

    Posted 23 Nov 2009 Link to this post

    Hi Telerik Guys !

    I have been using the RAD MENU for a quite some while in my project.

    Iam using the RADMENU in one of my project & this RADMENU is being populated dynamically .

    Now what I need to do is to display the IMAGE(LOGO) along with the RAD MENU.

    I dont know how to do it as I have not written any code in my ASPX page nor i have used any TEMPLATE.

    Below is the code that I have used in order to dynammically bind the RADMENU:-

       <telerik:RadMenu ID="RadMenu1" Width="220px" runat="server" DataSourceID="ModulesSqlDataSource" 
                                DataTextField="MOD_DET_Name" DataValueField="MOD_DET_ID" Flow="Vertical" Font-Names="Trebuchet MS" 
                                Font-Size="15px" OnItemClick="RadMenu1_ItemClick" Skin="Web20">  
                            <asp:SqlDataSource ID="ModulesSqlDataSource" runat="server" ConnectionString="<%$ ConnectionStrings:demoDMSConnectionString %>" 
                                SelectCommand="Usp_Dms_GetModulesForDMSApplication" SelectCommandType="StoredProcedure">  
    While , below is the Item Click event of the RADMENU:-

     protected void RadMenu1_ItemClick(object sender, Telerik.Web.UI.RadMenuEventArgs e)  
            if (e.Item.Text == "Document Management")  
            else if (e.Item.Text == "Folder Permissions")  
            else if (e.Item.Text == "FTP Management")  
     While , my basic requirement is to display the RADMENU just like the image that I have attached.

    Please help !!!

    Ajay Jamwal
  2. Princy
    Princy avatar
    17421 posts
    Member since:
    Mar 2007

    Posted 23 Nov 2009 Link to this post

    Hello Ajay,

    Try out the following code to display images for each menu item:
    protected void RadMenu1_ItemDataBound(object sender, RadMenuEventArgs e) 
            e.Item.ImageUrl = "Images/Image1.gif";  

  3. vikas
    vikas avatar
    11 posts
    Member since:
    Dec 2008

    Posted 07 May 2013 Link to this post


    I was wondering if you can resize the image because if somehow the image is out of the menu propotion.

    Please help, Thank you
  4. Kate
    Kate avatar
    1898 posts

    Posted 08 May 2013 Link to this post

    Hi vikas,

    can you please provide more details on your scenario? Can you clarify how do you mean to resize the image? An image file or a short video demonstrating the problematic appearance would be very helpful.

    the Telerik team
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
Back to Top