We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy.
Unfortunately, activation email could not send to your email. Please try again.

[(ngModel)] not working

Thread ID:





128589 Jan 30,2017 08:24 PM Feb 3,2017 04:12 AM Angular 2
Tags: ejMaskEdit
Bruno Reato
Asked On January 30, 2017 08:24 PM

I'm using a ejMaskEdit widget like normal edit, but the 2-way binding is not working.  When i edited the textbox i get the undefined value from attribute when leave the textbox. Also, when i bind a ejButton widget to a event handler is executed twice, this not happend with a normal button.

I attached a example, please try the "widgets" tab.

Thanks in advance.

Attachment: angular2seeds_c0e3c6b2.zip

Bruno Reato
Replied On February 2, 2017 05:32 AM

Thanks for your help Francis!

Francis Paul Antony Raj [Syncfusion]
Replied On February 3, 2017 04:12 AM

Hi Bruno, 
Thanks for contacting Syncfusion Suppot. 
Query #1): MaskEdit- 2-way binding is not working 
We have created a new incident under your account regarding this query. Please track that incident for further details by login with your Syncfusion account. 
Query #2): ejButton widget event handler is executed twice 
We are reproducing the same issue in our end. Initial click event raises from angular. Latter click event triggers due to ejButton. We can identify origin of click event using “model” (event argument). So, please use the below code to prevent the “click” event triggering from Angular.  
      if (!ej.isNullOrUndefined(args.model))   
        //your change event code.  
        console.log("Button Click event Triggered.");      
        //where args.model comprises of model values of Button  
        //args.model doesn’t present in the event raises from angular  
Francis Paul A.  


This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.