Bug 10620 - EntryElement Change event not fires on text change
Summary: EntryElement Change event not fires on text change
Status: RESOLVED FEATURE
Alias: None
Product: iOS
Classification: Xamarin
Component: Xamarin.iOS.dll ()
Version: 6.0.x
Hardware: PC Mac OS
: --- normal
Target Milestone: Untriaged
Assignee: Miguel de Icaza [MSFT]
URL:
Depends on:
Blocks:
 
Reported: 2013-02-24 06:51 UTC by Narender Reddy
Modified: 2013-03-12 09:20 UTC (History)
2 users (show)

Tags:
Is this bug a regression?: ---
Last known good build:

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.


Please create a new report on Developer Community or GitHub with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:
Status:
RESOLVED FEATURE

Description Narender Reddy 2013-02-24 06:51:45 UTC
Description of Problem: 'Change' event of the EntryElement never fires on changing text input. It only fires when the focus lost. 


Steps to reproduce the problem:
1. Create an EntryElement and bind Chang event to it.

2. Run the application and keep entering text on EntryElement, (The change event will not fire till it loses focus)


Actual Results:
Change event of EntryElement not fires on text change.

Expected Results:
Change event of EntryElement should fire on text change.

How often does this happen? 
every time.

Additional Information:

I need to implement a feature to append hyphens automatically to the phone number like 123-456-7890. I badly need a text change event to achieve the above. Please fix the issue or suggest me a way to achieve my requirement.
Comment 1 Jeffrey Stedfast 2013-02-24 08:57:40 UTC
This is for MonoTouch.Dialog, right?
Comment 2 Narender Reddy 2013-02-28 00:37:16 UTC
Hi, Can any one please respond to my bug report?
Comment 3 Miguel de Icaza [MSFT] 2013-02-28 03:02:02 UTC
This is by design.   There is a history for why this is needed in the bug history of MonoTouch.Dialog.

If you want a different behavior, you can replicate the source code from http://github.com/migueldeicaza/MonoTouch.Dialog for the EntryElement and adjust the behavior.
Comment 4 Narender Reddy 2013-03-02 08:42:12 UTC
@Miguel De Icaza  Thanks for your response, but I couldn't figure out  which part of the above mentioned sample is matches with my requirement. (Or that I can replicate).

Otherwise, Can you give any example app where auto insertion of  symbols is being used while entering text in EntryElement.
Comment 5 Miguel de Icaza [MSFT] 2013-03-02 12:27:04 UTC
The above is not a sample, it is the actual source code for EntryElement.

So what you need to do is cut-paste the EntryElement, rename it, make changes to the keys, and hook up to the other events you need.
Comment 6 Narender Reddy 2013-03-12 09:20:05 UTC
Great!  Many thanks for your time. 

I have hooked up EditingChange event to the EntryElement and that solved my problem.