Apr 30, 2017, 10:51 AM
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:
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
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 textso 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