Posted 8 March 2018, 4:58 pm EST
We have a cell template on a Wijmo Grid in an Angular 5 project using Wijmo 5. When the value in a dropdown menu item changes, a function should be called to update that column in the grid.
The cell template looks like this:
<wj-combo-box class="event-wj-combo-box"
name="Loading_Time_Title"
id="Loading_Time_Title"
[(ngModel)]="Loading_Time_Title"
[itemsSource]="dropdown_list.times"
(ngModelChange)="title_change($event,'Loading_Time')"
[selectedValuePath]="'lookup_code'"
[displayMemberPath]="'text_long'"
>
When the value changes, this function is called:
title_change(e, key) {
console.log("e,key",e,key);
_.each(this.data, function (item) {
(item as any)[key] = e;
});
this.data_view = new wjCore.CollectionView(this.data);
this.groupData_view = new wjCore.CollectionView(this.groupData);
}
This was working properly in an earlier version of Wijmo 5 (v.380 - with a version number in that version), however it’s not working in the current .409 release.
Has this function changed, or the method signature changed? Is this a bug?
Thanks!
:Steve