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: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Losing the selected value from multiple autocomplete textboxes

Thread ID:





129423 Mar 16,2017 03:28 PM UTC Mar 17,2017 11:04 AM UTC Angular 1
Tags: ejAutoCompleteTextBox
Nagarjuna Madupu
Asked On March 16, 2017 03:28 PM UTC

When I try to save textbox values on click on Save button, values becoming empty. Can you help?
 <div class="ctrllabel">Rep</div>
                        <input type="text" id="autoRep" ej-autocomplete watermarkText="Rep"  [enableAutoFill]="true" width="100%" [dataSource]="flowers"    [(ngModel)]="selectedRep"/>
                        <div class="ctrllabel">Office</div>
                        <input type="text" id="autoOffice" ej-autocomplete watermarkText="Office"  [enableAutoFill]="true" width="100%" [dataSource]="flowers"  [(ngModel)]="selectedOffice"  />
                        <div class="ctrllabel">SalesRep</div>
                        <input type="text" id="autoRep" ej-autocomplete watermarkText="SalesRep"  [enableAutoFill]="true" width="100%" [dataSource]="flowers"  [(ngModel)]="value"  />
                        <input class="col-xs-2" id="myButton" value="Save"  (click)="onClick($event)" />

Arun Palaniyandi [Syncfusion]
Replied On March 17, 2017 11:04 AM UTC

Hi Nagarjuna,   
Thanks for Contacting Syncfusion support.   
We tried to reproduce the mentioned scenario but unfortunately we were unable to reproduce it. We have used the Button click event to take the values of the autocomplete text boxes and on the Button Click, values are not turning to empty even on the two-way binding.   
  Please find the below sample for your reference.   
Also, we would like to know whether the values become empty on any postback or saved after any Database or something related to that. And please Open the console window and check for scripts errors. If you found any errors, please share us the screenshot and if possible use our shared sample to reproduce your issue.   
Please explain us more detailly so that it would be helpful for us to assist you further.   
Arun P.   


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.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

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