I have a tab strip with two tabs, each containing an angular component inside of which is a grid.
Currently both components are initialised and the data for bothy grids is fetched from the server, hardly desirable. I have *loadOnDemand set on both tabs but this does not seem to work, here is some code to explain:
<kendo-tabstrip [tabPosition]="'left'" [keepTabContent]="true"> <kendo-tabstrip-tab title="{{ 'NcDocumentReviews' | localize }}" [selected]="true"> <ng-template kendoTabContent *loadOnDemand> <app-nc-document-review #documentReviewComponent [id]="id" [parent]="ncEntity" (notifyModify)="onLoadModifyButtonSelected($event)" (viewDocument)="showDocument($event)" (viewHistory)="showHistory($event)"></app-nc-document-review> </ng-template> </kendo-tabstrip-tab> <kendo-tabstrip-tab title="{{ 'NcDocumentsLoad' | localize }}"> <ng-template kendoTabContent *loadOnDemand>..code removed for brevity
How do I configure the tab strip so the contents of each tab is fired only when the tab is selected?