您好我目前在我的{N}项目中使用nativescript-telerik-ui插件并使用如下所示的RadListView
<RadListView #myRadListView [items]="posts"
loadOnDemandMode="Auto" (loadMoreDataRequested)="onLoadMoreItemsRequested($event)"
itemDeleteAnimation="Fade" [listViewLayout]="layout">
<template tkListItemTemplate let-post="item" let-index="index">
<!--- data goes here -->
</template>
<template tkListViewHeader>
<Label text="next page" [nsRouterLink]="['/next-page']"></Label>
</template>
</RadListView>
在NextPage组件中,当用户点击后退按钮ActionItem时,我将页面重定向到帖子页面(即RadListView页面),如下所示
goBack(){
this.routerExtensions.backToPreviousPage();
}
当loadOnDemandMode&#39;没有触发,即列表中加载了初始项目。 当使用loadOnDemandMode刷新列表并使用backToPreviousPage()点击下一页并从该页面返回时,我收到以下错误
Feb 1 20:28:36 MacBook-Pro tingrnsapp[39294]: file:///app/tns_modules/ui/core/view-common.js:748:22: JS ERROR TypeError: undefined is not an object (evaluating 'child.onLoaded')
Feb 1 20:28:36 MacBook-Pro SpringBoard[5176]: [KeyboardArbiter] HW kbd: Failed to set (null) as keyboard focus
Feb 1 20:28:36 MacBook-Pro com.apple.CoreSimulator.SimDevice.0E8C3B6B-C97F-44B9-8286-697D21C32991.launchd_sim[5159] (UIKitApplication:org.tingr.teacher.prod[0x39cb][39294]): Service exited due to Segmentation fault: 11