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. (Last updated on : Nov 16th 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

[(ngModel)] not working

Thread ID:

Created:

Updated:

Platform:

Replies:

128589 Jan 31,2017 01:24 AM UTC Feb 3,2017 09:12 AM UTC Angular 2
loading
Tags: ejMaskEdit
Bruno Reato
Asked On January 31, 2017 01:24 AM UTC

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 10:32 AM UTC

Thanks for your help Francis!

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

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.  
 
[script]  
onShowMaskValue(args){  
      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  
      }      
    }  
  
 
 
Regards,  
Francis Paul A.  


CONFIRMATION

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.

Warning Icon 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.Close Icon

;