Posted 29 June 2023, 1:51 pm EST
Hi Team,
i am looking for a solution to make a grid columns dynamic using ColumnGroup options. here is the sample code
<wj-flex-grid #flex (initialized)="initGrid(flex)" 
        headersVisibility="Column" showSelectedHeaders="All"
        [alternatingRowStep]="0" [showMarquee]="true" [autoGenerateColumns]="false"
        [itemsSource]="dataAssetCollection" (scrollPositionChanged)="onScrollPositionChanged($event)"
        [ngStyle]="{'max-height':containerHeightGrid,'margin-top': containerTopSpace}"
        (click)="onGridClick(flex,$event)" (selectionChanged)="selectionChanged(flex, $event)">
        <wj-flex-grid-column-group *ngFor="let column of gridSettings?.Columns" [binding]="column.Binding"
            [width]="column.Width" [header]="column.Name">
                <wj-flex-grid-column-group *ngFor="let columndeep of column?.Columns" [binding]="columndeep.Binding"  [header]="columndeep.Name">
                </wj-flex-grid-column-group>
        </wj-flex-grid-column-group>
        <wj-flex-grid-filter #filter (filterChanged)="filterChanged()" (filterApplied)="filterApplied()">
        </wj-flex-grid-filter>
    </wj-flex-grid>I am doing loop inside loop for generating columns which i have the json ready.
While the Top Header is generated, the nested column headers are not getting generated. I checked all properties are mapped correctly.
 
                                 
                                
 
                         
                         
                         
                        