And the following Grid:
<select class="form-control" [(ngModel)]="defaultId">
<option *ngFor="let i of employeList" [ngValue]="i.id">{{ i.firstName }} {{ i.lastName }}</option>
</select>
<ej-gridAnd in editSettings I have selected batch editMode.
id="Grid"
[allowRowDragAndDrop]="true"
selectionType="multiple"
[dataSource]="gridData"
[editSettings]="editSettings"
(actionComplete)="actionComplete($event)"
...
>
<e-columns>
...
<e-column field="ownerId" headerText="Owner" width="50" [editType]="editTypeDropdown" [dataSource]="employeList" foreignKeyField="id" foreignKeyValue="text" [defaultValue]="defaultId"></e-column>
</e-columns>
</ej-grid>
Hi,
yes there has come to missunderstanding, but this is probably my fault. In your video you have changing other select than I was talking about. To my problem comes when you change select with binding defaultId ([(ngModel)]="defaultId").
I have prepared an example and attached it with my code and video in it.
In video I change owner select, but my desktop recorder didn't capture that very nice, so:
and I don't wantt to lose those unsaved changes if I only changing default value for one column.
Regards,
Marko