[FIXED] [#1541] [4.5.0] Imagebutton remains pressed after the click

  1. #1

    [FIXED] [#1541] [4.5.0] Imagebutton remains pressed after the click

    Hi,
    see my example, in Ext.Net 4.3 when I click the button it remains with the pressed image, I will click again and everything returns normal.
    Thank you

    Jimmy

    <%@ Page Language="C#" %>
    
    
    <script runat="server">
        protected void Button_Click(object sender, DirectEventArgs e)
        {
            X.Msg.Alert("Server Time", DateTime.Now.ToLongTimeString()).Show();
        }
    </script>
    
    
    <!DOCTYPE html>
    
    
    <html>
    <head runat="server">
        <title></title>
        <link href="/resources/css/examples.css" rel="stylesheet" />
    </head>
    <body>
        <ext:ResourceManager runat="server" />
    
    
        <ext:ImageButton
            runat="server"
            ImageUrl="button.gif"
            OverImageUrl="overButton.gif"
            DisabledImageUrl="disabled.gif"
            PressedImageUrl="pressed.gif">
            <DirectEvents>
                <Click OnEvent="Button_Click" />
            </DirectEvents>
        </ext:ImageButton>
    
    
    </body>
    </html>
    Last edited by fabricio.murta; Sep 13, 2017 at 3:16 AM.
  2. #2
    Hello @xeo4.it!

    Thanks for the report, this really look like a bug. We'll investigate this and post you a feedback here soon!
    Fabrício Murta
    Developer & Support Expert
  3. #3
    Hello again, @xeo4.it! Sorry for the delay, we've been busy releasing Ext.NET 4.4.0 this week.

    We have just confirmed this as a bug and logged it under #1541. Unfortunately, no solution yet, but we'll give this a good look so that this issue is fixed for our next release.
    Fabrício Murta
    Developer & Support Expert
  4. #4
    And hello once again, Jimmy!

    We've just fixed this in our current release branch in github! Already available for you if you want to build from sources.

    While we are confident the fix we applied addresses the issue, we can always skip a real-life edge case for not foreseeing it, so your feedback would be greatly appreciated!

    Hope the news is welcome!
    Fabrício Murta
    Developer & Support Expert

Similar Threads

  1. Replies: 3
    Last Post: Feb 04, 2016, 6:54 AM
  2. [CLOSED] Toolbar item remains selected after click
    By RCN in forum 3.x Legacy Premium Help
    Replies: 15
    Last Post: Feb 12, 2015, 12:09 AM
  3. [CLOSED] Set ImageButton to "pressed" on server-side.
    By rthiney in forum 1.x Legacy Premium Help
    Replies: 1
    Last Post: Sep 12, 2011, 2:42 PM
  4. [CLOSED] [1.0] ImageButton DirectEvent Click
    By Timothy in forum 1.x Legacy Premium Help
    Replies: 2
    Last Post: Jun 21, 2011, 4:10 PM
  5. [CLOSED] ext:ImageButton, open URL in parent window
    By Jurke in forum 1.x Legacy Premium Help
    Replies: 5
    Last Post: Mar 11, 2009, 11:39 AM

Posting Permissions