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.

Losing the selected value from multiple autocomplete textboxes

Thread ID:

Created:

Updated:

Platform:

Replies:

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

Hi
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 07:04 AM

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.   
   
Regards,   
Arun P.   


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.

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.

;