Direct Event click execute partially only

  1. #1

    Direct Event click execute partially only

    Hi,

    I'm doing this:

    <ext:Button runat="server" Text="Save">
        <DirectEvents>
            <Click OnEvent="UpdateOpenFund" Complete="App.UpdateOpenFundWindow.hide(); App.UpdatedOpenFund.reset();" />
        </DirectEvents>
    </ext:Button>
    The UpdateOpenFund event update two text fields (and then the complete method should run).

    The problem is that what is actually happens is that upon the first click the first text filed updated on the second click the seconf field updated and only on the third click the complete method executed.

    Why that happened? why not all the operations happened in the same time?

    (the java script that return from the server seems ok i.e. it contain setValue for both fields that i want to update but only one actaully updated on the first click)

    Thanks
    Last edited by fabricio.murta; Jun 06, 2017 at 5:01 PM. Reason: Wrap code in [code][/code] tags.
  2. #2
    Hello @eitanby! Welcome to Ext.NET forums!

    I'm afraid the code snippet you provided is too few to be able to say anything. It looks fine by itself.

    Please provide a simplified code sample demonstrating how to reproduce the issue.

    The code sample you provide should include only the minimum amount of code required to reproduce the issue. Code unrelated to the issue is to be removed. Anyone should be able to copy + paste your sample into a local Visual Studio test project and run without having to make modifications.

    Tips for creating simplified code samples

    If Exceptions or syntax errors are thrown when testing your code sample, we'll let you know so you can revise your original sample. Then we'll review again with the updated sample.

    When posting your code samples in the forums, please paste that sample within [CODE] tags. The [CODE] tags will add formatting and syntax highlighting to your sample.

    The following two forum posts provide many excellent tips for posting in the forums:

    1. More Information Required
    2. Forum Guidelines

    EDIT: we've edited your original post to wrap the code snippet you provided around [code][/code] tags.
    Last edited by fabricio.murta; Jun 06, 2017 at 5:03 PM.

Similar Threads

  1. Replies: 0
    Last Post: Jun 09, 2013, 5:26 AM
  2. Click OnEvent before direct event
    By ada in forum 2.x Help
    Replies: 1
    Last Post: Jun 05, 2013, 2:54 AM
  3. Replies: 8
    Last Post: Sep 10, 2012, 6:38 AM
  4. Replies: 1
    Last Post: Mar 29, 2012, 9:52 AM
  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