RadlistView - how to use dataPopulated event

廉价感情. 提交于 2021-02-11 17:20:57

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!