[CLOSED] Unexpected behaviour of EventMask and FormBind="true"

  1. #1

    [CLOSED] Unexpected behaviour of EventMask and FormBind="true"

    Hi,

    Scenario: One button, when clicked mask whole window/form disallowing user to click that button again until event is finished.

    If your button have FormBind="true" you can use "Enter" key to trigger Click event on your form.
    My issue is that "Enter" key is still working when window/form is masked.
    Holding "Enter" key triggers Click event all the time and new EventMasks are created on top of already created one.

    My solution is to disable the button using Click Listener and enable when event is completed:

    <Buttons>
        <ext:Button
            runat="server"
            ID="btnLogin"
            Text="Login"
            FormBind="true">
    
            <Listeners>
                <Click Handler="item.disable()" />
            </Listeners>
    
            <DirectEvents>
                <Click OnEvent="LoginClick" Complete="item.enable()">                                    
                    <EventMask
                        ShowMask="true"                                        
                        Msg="Please wait..." />
                </Click>
            </DirectEvents>
        </ext:Button>
    </Buttons>
    Hope that will help to avoid that unexpected behaviour.

    Matt,
    Last edited by Daniil; Aug 12, 2014 at 3:55 PM. Reason: [CLOSED]
  2. #2
    Hi @matt,

    Yes, masking doesn't prevent the behavior on Enter press. I think your solution is good enough.

Similar Threads

  1. Replies: 1
    Last Post: Oct 05, 2012, 11:56 AM
  2. [CLOSED] [MVC] Export Excel return "BADRESPONSE: Unexpected token <"
    By UnifyEducation in forum 2.x Legacy Premium Help
    Replies: 1
    Last Post: Aug 02, 2012, 3:05 PM
  3. [CLOSED] Hidden="true" behaves as Visible="false"
    By marco.morreale in forum 2.x Legacy Premium Help
    Replies: 5
    Last Post: May 28, 2012, 3:17 PM
  4. Replies: 5
    Last Post: May 02, 2012, 5:37 PM
  5. [CLOSED] DropDownField with Grow="true" and GrowMax="xxx"
    By deejayns in forum 1.x Legacy Premium Help
    Replies: 4
    Last Post: Jan 12, 2012, 12:00 PM

Tags for this Thread

Posting Permissions