Posted 20 April 2022, 4:36 pm EST
Hi guys,
Trying to set values for checkeditems. I can see it loaded and set checkeditems by breakpoint at the line of setting this.multiSelect.checkedItems but after released the stop, it will turn to be all unchecked right away.
I have clear the all of unnecessary code, but
<wj-multi-select #s
[maxHeaderItems]=“1”
[itemsSource]=“items”
selectedValuePath=“item.id”
displayMemberPath=“item.id”
[showSelectAllCheckbox]=“true”
(checkedItemsChange)=“onFilterChanged()”>
In the ngOnChanges, I do this.
this.multiSelect.checkedItems = this.items.filter(x => this.filter.selectedIds.includes(x.item.id));