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

Two Icons on a Menuitem

1 Answer 46 Views
Menu
This is a migrated thread and some comments may be shown as answers.
Donald Norris
Top achievements
Rank 1
Donald Norris asked on 24 Jul 2012, 08:10 PM
I would like to have the ability to have two icons on a menu item, but not always.  I generate my entire menu with three levels programmatically.  I put it in a control so all I have to do is drop it on a page and it works.
What I would like is the have two items possibly on a menuitem.  One on the left that would be a graphical prepresentation of what the menuitem does such as print, maintenance, etc and the another on the right that says NEW or Revised.  That way if a menuitem is new within the last 90 days I can display NEW or if the program behaviour has changed it can say REVISED.

Is this possible?

Thanks

1 Answer, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 2
answered on 27 Jul 2012, 07:23 AM
Hi Donald,

You could try using ItemTemplate of RadMenuItem to customize RadMenu with 2 icons.
Try the following aspx which I did and worked as expected
aspx:
<telerik:RadMenu ID="RadMenu1" runat="server">
 <Items>
   <telerik:RadMenuItem Text="Home">
     <Items>
       <telerik:RadMenuItem Width="100px">
          <ItemTemplate>
            <asp:ImageButton ID="ImageButton1" style="float:left" runat="server" ImageUrl="~/Images/menuitemimage.gif" />
               <asp:Label ID="Label1" runat="server"  Text="Menu">
               </asp:Label>
               <asp:ImageButton ID="ImageButton2" runat="server" ImageUrl="~/Images/yournewimage.gif" />
          </ItemTemplate>
       </telerik:RadMenuItem>
     </Items>
   </telerik:RadMenuItem>
  </Items>
</telerik:RadMenu>

Thanks,
Princy.
Tags
Menu
Asked by
Donald Norris
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
Share this question
or