I am making a raay dynamically for prepopulate the values of multiselect but not able to do that.
Here is my code:-
in Html:-
<ejs-multiselect #adminList id='adminList' [dataSource]='adminDataSource' [allowFiltering]="true" mode='Box'
[fields]='fields' floatLabelType="Always" placeholder='Select Project Admin'
formControlName="Admin" [value]="value1">
</ejs-multiselect>
In ts file:-
following code is not working:-
for (let j = 0; j < data.length; j++)
{
this.value2.push((data[j].EntityUserId));
}
Note:- Data have two rows in which data[1].EntityUserId=5 and data[2].14
following is working:-
this.value1 = [5, 14];
Please help