Posted 12 November 2020, 4:41 pm EST
Hello Team,
I have a flexgrid having 2 columns.
each column contain a combo box, while selecting first combo, then I have to fill the second combo using first combo value.
I did this by using DataMaps but this solution was not suitable to our requirement.
After that I have written the below code, UI looks as expected, but I am unable to read data, set data and find the combo boxes in typescript. Please help me to resolve the issue.
<wj-flex-grid #flexGrid
[itemsSource]="targetCompanyDataSource"
[autoGenerateColumns]="false" [itemFormatter]="itemFormatter"
<ng-template wjFlexGridCellTemplate [cellType]="'RowHeader'" let-row="row"
let-item="item">
{{row.index + 1}}
</ng-template>
<wj-flex-grid-column [header]="' '" [binding]="'active'"
class="bui-checkbox-unchecked" [allowSorting]="false" [width]="33">
</wj-flex-grid-column>
<wj-flex-grid-column [header]="'Source Column'"
[binding]="''" [width]="'*'">
<ng-template wjFlexGridCellTemplate [cellType]="'Cell'" let-cell="cell">
<combobox [(ngModel)]="cell.editCellCompanies"
[itemsObservable]="SourceData" [options]="comboOptions"
[placeholder]="'Select'"
>
</bento-combobox>
</ng-template>
</wj-flex-grid-column>
<wj-flex-grid-column [header]="'Target Column'" [binding]="''"
[width]="'*'">
<ng-template wjFlexGridCellTemplate [cellType]="'Cell'" let-cell="cell">
<combobox [(ngModel)]="cell.editCellCompanies"
[itemsObservable]="TargetData" [options]="comboOptions"
[placeholder]="'Select'"
>
</bento-combobox>
</ng-template>
</wj-flex-grid-column>
</wj-flex-grid>