问题
Anyone knows how to use dataPopulated event for RadListView?
I searched everywhere, but couldn't find an example of how to implement it.
My RadListView HTML is as follows:
<RadListView [items]="contacts" #contactsListView [groupingFunction]="myGroupingFunc"
[sortingFunction]="mySortingFunc" [filteringFunction]="myFilteringFunc"
(dataPopulated)="dataPopulated($event)">
<ng-template tkListItemTemplate let-item="item" let-index="index">
<ns-contacts-item [item]="item" [index]="index" (tap)="onItemTap($event)"></ns-contacts-item>
</ng-template>
<ng-template tkGroupTemplate let-category="category">
<GridLayout ios:height="50">
<Label class="nameLabel" [text]="category" class="groupLabel"></Label>
</GridLayout>
</ng-template>
</RadListView>
And in my TS file I have a simply dataPopulated(event) function which doesn't do much at the moment (except console.log), but even with that it takes a very long time to render the view, often it seems it's stuck.
I just want to know when the data is loaded so I can do a bunch of things.
Any help will be appreciated.
来源:https://stackoverflow.com/questions/61192851/radlistview-how-to-use-datapopulated-event