Button does not render image

2 posts, 0 answers
  1. SSirica
    SSirica avatar
    50 posts
    Member since:
    Jan 2007

    Posted 23 Dec 2010 Link to this post

    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?
  2. Pero
    Admin
    Pero avatar
    1156 posts

    Posted 24 Dec 2010 Link to this post

    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.
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top