Call Direct Event onChange after delay

  1. #1

    Call Direct Event onChange after delay

    Hi everyone,
    There is a problem on [change event] for example if i use a textbox to filtr a grid panel like this:
       <ext:TextField ID="txtSearch" runat="server" MarginSpec="0 0 0 20" FieldLabel="Filter" Width="200" LabelWidth="70">
                                    <DirectEvents>
                                        <Change OnEvent="SetFilter" Delay="1000" />
                                    </DirectEvents>
                                </ext:TextField>
    so there is a delay for 1 sec, it supposed to mean that i have one second before i finished my text
    so if i write 'foo' as fast as possible the event will reconize txtsearch.text = 'foo' that is correct
    but the event is also check that 3 times in code behind [based on the number of letters]

    the question is:
    i want to write a text then the event goes to code behind for just one time after the delay finished.
    is there anyway to do that? maybe another event like onchange,beforechange etc..

    thank you
  2. #2
    Hello @odaysaed!

    You described the Buffer setting but used the Delay one instead. ;)

    Hope this helps!
    Fabrício Murta
    Developer & Support Expert
  3. #3
    Thank you.

    That is exactly what i want.
    and its very helpful for filtering the grids and autocomplete combo-box.

    thanks again

Similar Threads

  1. [CLOSED] Call direct event from Confirm Message
    By bayoglu in forum 2.x Legacy Premium Help
    Replies: 6
    Last Post: May 22, 2013, 9:03 AM
  2. [CLOSED] Direct Event/Method Call Priority
    By bayoglu in forum 2.x Legacy Premium Help
    Replies: 5
    Last Post: Feb 08, 2013, 2:04 PM
  3. [CLOSED] How to Call an event by Direct Events
    By Oliver in forum 2.x Legacy Premium Help
    Replies: 2
    Last Post: Jun 12, 2012, 6:33 PM
  4. [CLOSED] Problem with Direct event call on cell commands
    By feanor91 in forum 2.x Legacy Premium Help
    Replies: 8
    Last Post: Apr 26, 2012, 7:49 AM
  5. Replies: 6
    Last Post: Dec 14, 2011, 5:24 AM

Tags for this Thread

Posting Permissions