I am loading tabs in starting with a variable. Here is my code:-
<div *ngFor="let item of TabsDetails">
<div *ngIf="item.IsBranch;then branch_content else noBranch_content"></div>
<!--Block with Branch-->
<ng-template #branch_content>
<e-tabitem [header]="{ 'text': item.Label }">
<ng-template #content>
<img src={{iconImageSource}} (click)="fnBranchPopUp(item.Id)" />
<ejs-grid #overviewgrid id='overviewgrid' [dataSource]='gridDataSource' rowHeight='38' [allowSelection]='true'
height='600' width="1000px">
<e-columns>
<e-column headerText="Actions" [filter]='filterSettings' width='230'></e-column>
<!--for printing Grid columns-->
<div *ngFor="let item of gridColumns">
<e-column [field]="item.Label" [headerText]="item.Label" width='230'></e-column>
</div>
</e-columns>
</ejs-grid>
</ng-template>
</e-tabitem>
</ng-template>
<!--else block without branch-->
<ng-template #noBranch_content>
<e-tabitem [header]="{ 'text': item.Label }">
<ng-template #content>
<ejs-grid #overviewgrid id='overviewgrid' [dataSource]='gridDataSource' rowHeight='38' [allowSelection]='true'
height='600' width="1000px">
<e-columns>
<e-column headerText="Actions" [filter]='filterSettings' width='230'></e-column>
<!--for printing Grid columns-->
<div *ngFor="let item of gridColumns">
<e-column [field]="item.Label" [headerText]="item.Label" width='230'></e-column>
</div>
</e-columns>
</ejs-grid>
</ng-template>
</e-tabitem>
</ng-template>
</div>
Inside the tab item, I am showing grid with dynamic columns.
But now issues is, I need to reload new tabs the button click, I have new tabs names at the rowselect event of Grid.
But I am not able to load new tabs. Kindly help.