estrify Posted May 14, 2013 Posted May 14, 2013 Title: UniEdit's and UniMemo's OnChange event fire as they are onkey eventsDescription:Within UniEdit and UniMemo, OnChange event is fired in the server practically with each keystroke, what is strongly discouraged in a web application.Development Environment:Delphi 2010 w. UniGUI 0.93.0.996BrowserFF and IESteps to reproduce:See test caseTest case:20130514_UniEdit_and_UniMemo_OnChange_Event_Seems_OnKey.rar 20130514_UniEdit_and_UniMemo_OnChange_Event_Seems_OnKey.rar 1
Sherzod Posted May 14, 2013 Posted May 14, 2013 Dear estrify.I think that this is not a bug (since this post is located in the Bug Reports), sometimes useful such event.I think just have to add in the future is another event onChangeXXX (onChangeXXX is fired when the input looses focus).Sincerely duser.
Administrators Farshad Mohajeri Posted May 16, 2013 Administrators Posted May 16, 2013 So when OnChange event actually should be fired?
estrify Posted May 16, 2013 Author Posted May 16, 2013 So when OnChange event actually should be fired? I think it should be lauched when the complete change has effect (tipically, when looses focus and maybe when enter key is pressed). The current operation is practically equivalent to onkeyXXX events. Regards, 1
tappatappa Posted May 16, 2013 Posted May 16, 2013 It is true that sometimes (see Google Instant) it is useful that onChange == Onkeypress. But is heavy. It may be more user-friendly (and less heavy) if Keypress(enter) results in the edit losing focus, and triggers Onchange.
Administrators Farshad Mohajeri Posted May 17, 2013 Administrators Posted May 17, 2013 This is default behavior of Ext JS and not a bug. I move this to Feature Requests forum.
estrify Posted May 17, 2013 Author Posted May 17, 2013 This is default behavior of Ext JS and not a bug. I move this to Feature Requests forum. Ok... Thanks...
Recommended Posts