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

Hovered button icon doesn't revert

3 Answers 43 Views
Button
This is a migrated thread and some comments may be shown as answers.
Randy
Top achievements
Rank 1
Randy asked on 25 Apr 2013, 12:04 AM
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);
}

3 Answers, 1 is accepted

Sort by
0
Danail Vasilev
Telerik team
answered on 26 Apr 2013, 01:58 PM
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.
0
Randy
Top achievements
Rank 1
answered on 26 Apr 2013, 07:59 PM
Just a note - I never use Firefox.  Chrome is my preferred browser and IE is my backup.  The problem happens in both of them.
0
Bozhidar
Telerik team
answered on 01 May 2013, 07:25 AM
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.
Tags
Button
Asked by
Randy
Top achievements
Rank 1
Answers by
Danail Vasilev
Telerik team
Randy
Top achievements
Rank 1
Bozhidar
Telerik team
Share this question
or