Nov 26, 2010, 12:07 PM
[CLOSED] Problem with events order
Hi, I have a page with a trigger field and a button. the desire behaviour would be: When you introduce an account number text on the trigger field (named tggAccount), on the change event the system gets the associated id (and store it on hddTggAccount). After this, if you click on the search button (btnSearch), the system launchs a search with the id as a filter.
However, the system doesn't work on that way. The button click event executes before the change trigger field event, so the search doesn't get a coherent id.
I adjust you my code:
Thank u in advance
However, the system doesn't work on that way. The button click event executes before the change trigger field event, so the search doesn't get a coherent id.
I adjust you my code:
<ext:TriggerField ID="tggAccount" runat="server" Width="180" MaxLength="7" AllowBlank="true"
EmptyText="<%$ Resources: tggAccount.SearchCriteria %>" EnableKeyEvents="true"
Regex="<%$ Resources:RegularExpressions, RegExInt %>"
RegexText="<%$ Resources:RegularExpressions, RegExIntErrorText %>">
<DirectEvents>
<Change OnEvent="tggAccount_Change">
</Change>
</DirectEvents>
<Listeners>
<TriggerClick Fn="tggAccount_TriggerClick" />
</Listeners>
</ext:TriggerField>
<ext:Hidden ID="hddTggAccount" runat="server" Text="" />
<ext:Button ID="btnSearch" runat="server" Text="<%$Resources: strings, btnSearch_Text %>"
Icon="<%$Resources: strings, btnSearch_Icon %>">
<DirectEvents>
<Click OnEvent="btnSearch_OnClick">
<EventMask ShowMask="true" Msg="<%$Resources: itemLoading %>" />
</Click>
</DirectEvents>
</ext:Button>
Could you give me any suggestion, please?Thank u in advance
Last edited by Daniil; Dec 01, 2010 at 5:57 AM.
Reason: [CLOSED]