Hovered button icon doesn't revert

4 posts, 0 answers
  1. Randy
    Randy avatar
    50 posts
    Member since:
    Aug 2010

    Posted 24 Apr 2013 Link to this post

    When using a RadButton with icons, when the mouse is over the icon, it should display the PrimaryHoveredIconURL.  Then when you move the mouse off of the icon it should change to the PrimaryIconURL.  

    This works fine in most cases.  However if you have a client event on the button - OnClientClicked - that launches a RadAlert, when you move the mouse off the button to close the RadAlert, the icon does not change back to the PrimaryIconURL.  So you are left with an icon that appears to be hovered. It 'fixes itself' once you move the mouse back over the icon and off it again.

    An interesting not is that if you use a JavaScript alert instead of the RadAlert, it works as expected and the PrimaryIconURL is displayed.  Both RadAlert and RadWindow have the same issue.  Is there any way around this?

    <telerik:RadButton runat="server" ID="btnAdvertiserSearch" AutoPostBack="false"
         Skin="Metro" OnClientClicked="openAlert">
         <Icon PrimaryIconUrl="~/resources/images/ui-icon-search.png"
             PrimaryHoveredIconUrl="~/resources/images/ui-icon-search_hover.png" />
     </telerik:RadButton>

    function openAlert(sender, args)
    {
        radalert('a', null, null, 'b', null);
    }
  2. Danail Vasilev
    Admin
    Danail Vasilev avatar
    1492 posts

    Posted 26 Apr 2013 Link to this post

    Hi Randy,

    This seems to be an issue with the persisting of the hovered image of the RadButton when a dialog is opened when OnClientClicked event is triggered. The unexpected behavior is observed only in FireFox.

    I have logged it in our feedback portal here, so that you can monitor and comment on it. However, I cannot provide any time estimates for the fix, as our developers are currently working on tasks with higher priority. For the time being you can raise the priority of the item by voting on it.

    I have also updated your Telerik points as a small token of gratitude for reporting this issue to us.


    Greetings,
    Danail Vasilev
    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.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Randy
    Randy avatar
    50 posts
    Member since:
    Aug 2010

    Posted 26 Apr 2013 Link to this post

    Just a note - I never use Firefox.  Chrome is my preferred browser and IE is my backup.  The problem happens in both of them.
  5. Bozhidar
    Admin
    Bozhidar avatar
    677 posts

    Posted 01 May 2013 Link to this post

    Hi,

    Thank fro your note. We have updated the information that the issue happens in Chrome and IE also.

    Greetings,
    Bozhidar
    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