PDA

View Full Version : [CLOSED] How to Exclude the keyup event from the TextField checkChangeEvents.



iansriley
Aug 28, 2014, 9:13 AM
Hi,

In Ext.Net 2.5 we are facing issue with TextField change event. Actually change event should be fire after changing whole value, but with latest version while entering the key itself the Change event is firing, because of this we are facing problems in calculation part.

What is the way/fix for this issue?. TextField change event should be fire completion of entering the value only. In my case Blur event is sufficient why because we have other logic if value is changed on textfield, this logic will be failed on Blur event.

Please provide solution as early as possible.

Thank you.

matrixwebtech
Aug 28, 2014, 9:34 AM
Hi iansriley

may be I have similar issue . please see

http://forums.ext.net/showthread.php?42511-Mathemetical-Calculation-between-tow-fields

Daniil
Aug 28, 2014, 9:46 AM
Hi @iansriley,

Here you can look at the default value of the CheckChangeEvents config option.
http://docs.sencha.com/extjs/4.2.1/#!/api/Ext.form.field.Base-cfg-checkChangeEvents

You can override it globally like that. Put this script into the page's <head>.

if (Ext.isIE){
Ext.form.field.Text.prototype.checkChangeEvents = ['change', 'propertychange' ];
} else {
Ext.form.field.Text.prototype.checkChangeEvents = ['change', 'dragdrop'];
}