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

Button does not render image

1 Answer 104 Views
Button
This is a migrated thread and some comments may be shown as answers.
SSirica
Top achievements
Rank 3
Iron
Iron
Iron
SSirica asked on 23 Dec 2010, 03:20 PM
I have a button placed on a pretty large page with a lot of controls and the icon/image does not render until I mouse over it.  Here is the way the control is coded on the page:
<telerik:RadButton ID="RadButton1" runat="server" Text="Apply" Skin="Windows7" Width="150px" CssClass="ie7buttondist">
    <Icon PrimaryIconUrl="~/Images/Apply14.gif" 
        PrimaryIconWidth="14px" PrimaryIconHeight="14px" PrimaryIconLeft="20px" 
        PrimaryPressedIconUrl="~/Images/Apply14.gif" 
        PrimaryHoveredIconUrl="~/Images/Apply14.gif" />
</telerik:RadButton>

I already know what you are going to say, "we could not recreate the problem on our end"  I'm aware that this works if you place it on a form by it self.  I can get it to work on simple form.  The problem lies when this is placed on a form with a lot of other control.  Is there a way to force a refresh on the button?  Is there a style I should be setting?  Should I not bother to set the URLs in the HTML and do it in the VB code behind?

1 Answer, 1 is accepted

Sort by
0
Pero
Telerik team
answered on 24 Dec 2010, 08:16 AM
Hello,

We had users reporting similar issue with the icon missing, but I'm not sure if the problem is the same. Here is one of the threads with the problem: http://www.telerik.com/community/forums/aspnet-ajax/button/radbutton-icon-disappears-after-mouse-over.aspx.
Could you please provide a live URL where the problem can be observed, if a sample project is not an option? If you are not using image sprites it is not necessary to specify the same image for the Hovered and Pressed state of the primary icon.


Kind regards,
Pero
the Telerik team
Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.
Tags
Button
Asked by
SSirica
Top achievements
Rank 3
Iron
Iron
Iron
Answers by
Pero
Telerik team
Share this question
or