[CLOSED] Enable/Disable Button

  1. #1

    [CLOSED] Enable/Disable Button

    Good afternoon,


    I have the following problem:


    I have a button with the property standout= true.


    If I run:

    App.MyButton.disable ();
    App.MyButton.enable ();
    App.MyButton.disable ();


    The standout property disappears. Why is this happening?


    Thank you.
    Last edited by Daniil; Mar 19, 2013 at 12:02 PM. Reason: [CLOSED]
  2. #2
    Hello!

    I've tried the following with the trunk and it works fine:

    <%@ Page Language="C#" %>
    
    <%@ Register assembly="Ext.Net" namespace="Ext.Net" tagprefix="ext" %>
    
    <!DOCTYPE html>
    
    <html>
    <head runat="server">
        <title>Ext.NET Examples</title>
    </head>
    <body>
        <ext:ResourceManager runat="server" />
        <ext:Button runat="server" Text="Button1" StandOut="True" ID="Button1"></ext:Button>
        
        <ext:Button runat="server" Text="disable&enable&disable Button1" OnClientClick="#{Button1}.disable(); #{Button1}.enable(); #{Button1}.disable();"></ext:Button>
        <ext:Button runat="server" Text="Get StandOut of Button1" OnClientClick="Ext.Msg.alert('Value', #{Button1}.standOut);"></ext:Button>
    </body>
    </html>
  3. #3

    Toolbar button loses border when enabling after disabling

    Attached Thumbnails Click image for larger version. 

Name:	originalbutton.png 
Views:	375 
Size:	50.2 KB 
ID:	5807   Click image for larger version. 

Name:	afterpressingbutton.png 
Views:	354 
Size:	50.7 KB 
ID:	5808  
  4. #4
    Hello,

    Thank you for the sample.

    Please use the following fix for now. We will fix it in SVN soon.

    Fix
    Ext.button.Button.prototype.onEnable = Ext.Function.createSequence(Ext.button.Button.prototype.onEnable, function () {
        if (this.standOut) {
            this.addClsWithUI(this.overCls);
        }    
    });
  5. #5
    The fix has been committed to SVN and will be included into the next release (v2.2).

    Thank you for the report.

Similar Threads

  1. Replies: 2
    Last Post: Sep 27, 2011, 1:49 PM
  2. Replies: 1
    Last Post: Jul 28, 2011, 4:25 PM
  3. Button Disable/Enable issue
    By paddy in forum 1.x Help
    Replies: 3
    Last Post: Jul 26, 2011, 8:28 AM
  4. Button Enable/Disable
    By Maia in forum 1.x Help
    Replies: 5
    Last Post: Jul 02, 2010, 8:03 PM
  5. Enable or disable the button
    By VietView in forum 1.x Help
    Replies: 4
    Last Post: Jan 09, 2009, 11:59 AM

Posting Permissions