Enable/ Disable Direct Event Confirmation from client side.

  1. #1

    Enable/ Disable Direct Event Confirmation from client side.

    Hi all,

    In my grid panel , if user select all check boxes, i want to show confirmation message. If not i don't need to show it. Please guide me how to do this.

    here my code

    <ext:Button ID="btnUpdate" runat="server" Text="Update" Icon="Disk">
                <Listeners>
                    <Click Handler="return CompanyX.IsValidForm(true);" />
                </Listeners>
                <DirectEvents>
                    <Click OnEvent="SaveUser" Success="CompanyX.userUpdateSuccess();" Failure="showMessage(result.errorMessage,Ext.MessageBox.ERROR);">
                        <EventMask ShowMask="true" Msg="Updating..." CustomTarget="={#{winDetails}.body}"
                            MinDelay="1000" />
                            <Confirmation ConfirmRequest="true" Title="Title"/>
                    </Click>
                </DirectEvents>
            </ext:Button>
    Last edited by Daniil; Jul 31, 2013 at 5:39 AM. Reason: Please use [CODE] tags
  2. #2
    Hi @lasantha,

    Returning false from a BeforeConfirm handler prevents a confirmation dialog.
    <Confirmation BeforeConfirm="return false;" />
  3. #3
    Thanks Daniil,

    Highly appreciate your help. It's working.

    Thanks again.
  4. #4
    Just wanted to say I also used this, thanks!
  5. #5
    Thank you! It is glad ito hear that it is working for you as well!

Similar Threads

  1. [CLOSED] How to enable/disable paging on the client or server?
    By vadym.f in forum 1.x Legacy Premium Help
    Replies: 3
    Last Post: Jul 10, 2012, 2:37 PM
  2. [CLOSED] How to disable/enable tabs on the client?
    By vadym.f in forum 1.x Legacy Premium Help
    Replies: 2
    Last Post: Jun 21, 2012, 5:56 PM
  3. [CLOSED] Enable/disable DirectEvent confirmation on server side
    By jmcantrell in forum 1.x Legacy Premium Help
    Replies: 2
    Last Post: May 29, 2012, 4:53 PM
  4. Replies: 4
    Last Post: Apr 30, 2012, 4:49 PM
  5. Execute Ajax/Direct Event from Client-Side?
    By Tbaseflug in forum 1.x Help
    Replies: 5
    Last Post: Dec 16, 2010, 5:35 PM

Posting Permissions