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

2010Q1 cannot show icons on the Menu control?

1 Answer 38 Views
Menu
This is a migrated thread and some comments may be shown as answers.
xu jundong
Top achievements
Rank 1
xu jundong asked on 21 Apr 2010, 01:30 AM
Hi,telerik.
I  need your help.

After I upgraded my project to 2010Q1,the icons on the Menu control cannot be shown!

Is there any changed?

My code:
        <telerik:RadMenu Height="25" VerticalAlignment="Top" Name="toolMenu">
            <telerik:RadMenuItem Width="25" ToolTip="new file" Height="25"  Name="btnNew" Margin="5,0,0,0" Click="btnNew_Click">
                <telerik:RadMenuItem.Icon>
                    <Image Source="/Images/newSmall.png" Width="20" Height="20"/>
                </telerik:RadMenuItem.Icon>
            </telerik:RadMenuItem>
      </telerik:RadMenu>

Thank you!

1 Answer, 1 is accepted

Sort by
0
Boyan
Telerik team
answered on 26 Apr 2010, 03:34 PM
Hello xu jundong,

The problem is that in Q1 were implemented some hardcoded sizes. For example the space on the left of the image etc.... So this is hiding the icon. The solution is simple, remove the width of the RadMenuItem and this will show the image. If this doesn't fit your needs you can edit the template and change these fixed sizes as you wish.

If you have more questions  please feel free to ask.

Greetings,
Boyan
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.
Tags
Menu
Asked by
xu jundong
Top achievements
Rank 1
Answers by
Boyan
Telerik team
Share this question
or