PDA

View Full Version : Ext.form.Field onchange event



luca.santaniello
9 Mar 2011, 2:17 AM
Hi all,

I need add change listener to my field but chang event call only if I lost focus, click mouse on other item, use tab key and oters. Can I manage add character or remove character event?

Thanks

fay
9 Mar 2011, 3:36 AM
TextField (http://dev.sencha.com/deploy/dev/docs/?class=Ext.form.TextField&member=keypress), NumberField, DateField, etc., all have keydown, keypress, and keyup events (as well as specialkey) you can use. Don't forget to set enableKeyEvents (http://dev.sencha.com/deploy/dev/docs/?class=Ext.form.TextField&member=enableKeyEvents) to true.

luca.santaniello
9 Mar 2011, 10:57 AM
Thanks a lot