Posted 14 September 2017, 3:06 am EST
Hello Everyone
I’m trying to make a Table which includes this properties:
Name | Description | Units (Array of Units)
Name and Description is no Problem, but I have to make a Cell with a dropdown where the User can select multiple entries.
I’m using Angular with Typescript.
Now my Code looks like this but this does not work…
Can someone please help me with this.
<wj-flex-grid [(itemsSource)]="data" [allowSorting]="false" [allowAddNew]="true" [allowDelete]="true" [isDisabled]="disableTable" #adminTable> <wj-flex-grid-column [header]="name" [binding]="'name'" width="*"></wj-flex-grid-column> <wj-flex-grid-column [header]="description" [binding]="'description'" width="*"></wj-flex-grid-column> <wj-flex-grid-column [header]="'Units'" [binding]="'allowedUnits'"> <ng-template wjFlexGridCellTemplate cellType="Cell" let-cell="dropdownData"> <wj-multi-select [placeholder]="'choose'" [(itemsSource)]="dropdownData" [displayMemberPath]="'name'" [checkedMemberPath]="selected" [checkedItems]="checked"> </wj-multi-select> </ng-template> </wj-flex-grid-column> </wj-flex-grid>
Another thing I have to think about is how to get the correct Data.
My dropdownData is another Table with Units which should be shown in the Dropdown.
The User can select multiple and the selected should be saved in an Object Array.
Every Help would be nice.
Thank you.