Posted 4 April 2020, 5:36 pm EST
Hi Team,
I am trying to implement the following demo in my application. Everything works fine except when I try to bind the value to wj-auto-complete input element it doesn’t work.
https://www.grapecity.com/wijmo/demos/Grid/Editing/PopupEditors/angular
Here is my wijmo AutoComplete code.
<wj-auto-complete #cboName
[itemsSourceFunction]=“itemsSourceFunction”
[displayMemberPath]=“‘Name’”
[selectedValuePath]=“‘email’”
[isRequired]=“true”
[isEditable]=“false”
[placeholder]=“”
(initialized)=“initGrid(s,e)”
[minLength]=1
ngModel>
In my popup editor code, I am trying to assign the selected email value to wj-auto-complete input element. I want that when I click on pencil icon on my flexGrid it should display the value from the grid to the popup editor.
// prepare form
this.editingItem = flex.rows[ht.row].dataItem;
this.cboCountry.selectedItem = this.editingItem.country;
this.numberSales.value = this.editingItem.sales;
this.numberExpenses.value = this.editingItem.expenses;
this.cboName.selectedValue = this.editingItem.email;
It works fine when I first time click on the pencil icon. It displays everything correctly. But when I try to edit some other row, it just keep displaying the old data (i.e. it displays the old email id from the previous selected row).
Any help would be highly appreciated.