Jump to content

Recommended Posts

Posted

Title: UniEdit's and UniMemo's OnChange event fire as they are onkey events

Description:
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.996

Browser
FF and IE

Steps to reproduce:
See test case

Test case:
20130514_UniEdit_and_UniMemo_OnChange_Event_Seems_OnKey.rar
 

 

20130514_UniEdit_and_UniMemo_OnChange_Event_Seems_OnKey.rar

  • Upvote 1
Posted

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.

Posted

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,

  • Upvote 1
Posted

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.

×
×
  • Create New...