Disabled button / Inverted Hover Behavior

2 posts, 0 answers
  1. Chris Sears
    Chris Sears avatar
    15 posts
    Member since:
    Jul 2006

    Posted 21 Apr 2008 Link to this post

    If you use client script to disable a button in a tool bar click event handler, the hover behavior becomes inverted. Try this:

    function toolBarClicking(sender, args){

    Whatever button you clicked will now show a hover effect when you move off of it, even though the button is disabled.

  2. Erjan Gavalji
    Erjan Gavalji avatar
    1455 posts

    Posted 22 Apr 2008 Link to this post

    Hi Chris,

    Thank you for the report. We already fixed that and will be available in the first official service pack of RadControls for ASP.NET AJAX. In the meantime, you can overcome the problem using the following code:

        function onClientButtonClicking(sender, args)
            args.get_item().get_element().className = args.get_item().get_element().className.replace(/rtbItemHovered /ig, "");


    Please, find your Telerik account updated.

    Erjan Gavalji
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
  3. Telerik UI for ASP.NET Core is out
Back to Top