Posted 30 July 2018, 6:52 pm EST
Hi team,
I am using angular 6 with wijmo and i am getting this issue from long time
I have flex grid with 2 controls one is on Cell(Text Box) and one is one cellEdit (Drop Down auto complete)
When i update the text box for example to ABC and i go to drop down which is dynamic control it always updates to Last character i typed in text box which is “C” from ABC.
I tried a lot where the issue is coming from but no luck
This is sample example i have created
<wj-flex-grid #flex (initialized)="initialized(flex, e)" [itemsSource]="source" [selectionMode]="selectionMode" [style.height.px]="gridHeight" (cellEditEnded)="cellEditEndedHandler($event,flex)" [allowAddNew]="true" [allowDelete]="false" (deletingRow)="deletingRow($event)" (loadedRows)="loadedRows(flex)"> <wj-flex-grid-column [header]="'Notes'" [binding]="notes" [width]="'*'" [minWidth]="100"> <ng-template wjFlexGridCellTemplate [cellType]="'Cell'" let-cell="cell" let-item="item"> <input type="text" name="txtNote" [(ngModel)]="item.notes" [disabled]="true" /> </div> </ng-template> </wj-flex-grid-column>
<wj-flex-grid-column header=“Name” [binding]=“name” [width]=“150” [isReadOnly]=“disabled”>
<ng-template wjFlexGridCellTemplate [cellType]="'Cell'" let-cell="cell" let-item="item"> {{item.name}} </ng-template> <ng-template wjFlexGridCellTemplate [cellType]="'CellEdit'" let-cell="cell" let-item="item"> <wj-combo-box [itemsSource]="names" [(ngModel)]="item.name" [selectedValuePath]="'name'" [displayMemberPath]="'name'" > </wj-combo-box> </ng-template> </wj-flex-grid-column> </wj-flex-grid>
In above example whenever i change notes fields like ABC and try to update the drop down it gives me value “C” which is last updated character
Thanks


