I have multiple tabs on a page for different statuses. Each tab is having its own ui-grid and it is included by ng-include. The sample code is given below.
<tab heading="@L("Incomplete")">
<div ng-include="'~/App/common/views/incentives/incomplete.cshtml'"></div>
</tab>
<tab heading="@L("PendingApproval")">
<div ng-include="'~/App/common/views/incentives/pendingApproval.cshtml'"></div>
</tab>
<tab heading="@L("AwaitingTracker")">
<div ng-include="'~/App/common/views/incentives/awaitingtracker.cshtml'"></div>
</tab>
<tab heading="@L("DistributedToSales")">
<div ng-include="'~/App/common/views/incentives/distributed2sales.cshtml'"></div>
</tab>
I would like to achieve the below functionality.
- Each tab will load the data when we will focus on it.
- As now it all the tabs are loading data at a same time but all
ui-grids are not loading the data. Only first grid loads the data. refer this video http://screencast.com/t/HM0cfjOgCK