This question is locked. New answers and comments are not allowed.
Found that the custom load-on-demand view in the RadListView component is not working in Android.
Issue can be reproduced as follows:
- Clone the SDKAngular examples repo (https://github.com/telerik/nativescript-ui-samples-angular.git)
- Modify the file nativescript-ui-samples-angular/sdkAngular/app/listview/load-on-demand/listview-load-on-demand.component.android.html as follows (note the addition of *tkListLoadOnDemandTemplate in the html file):
<
GridLayout
tkExampleTitle tkToggleNavButton>
<
RadListView
[items]="dataItems"
loadOnDemandMode
=
"Manual"
(loadMoreDataRequested)="onLoadMoreItemsRequested($event)">
<
template
tkListItemTemplate
let-item
=
"item"
>
<
StackLayout
class
=
"itemTemplateStackLayout"
orientation
=
"vertical"
>
<
StackLayout
class
=
"innerOtemTemplateStackLayout"
orientation
=
"horizontal"
>
<
FrescoDrawee
height
=
"100"
width
=
"80"
[imageUri]="item.image"></
FrescoDrawee
>
<
StackLayout
class
=
"labelsStackLayout"
orientation
=
"vertical"
>
<
Label
class
=
"labelName"
[text]="item.name"></
Label
>
<
Label
class
=
"labelTitle"
[text]="item.title"
textWrap
=
"true"
></
Label
>
<
Label
class
=
"labelText"
[text]="item.text"
textWrap
=
"true"
></
Label
>
</
StackLayout
>
</
StackLayout
>
</
StackLayout
>
</
template
>
<!-- >> listview-load-on-demand-custom-view -->
<
GridLayout
*tkListLoadOnDemandTemplate
class
=
"loadOnDemandItemGridLayout"
>
<
Label
text
=
"Load More"
horizontalAlignment
=
"center"
verticalAlignment
=
"center"
></
Label
>
</
GridLayout
>
<!-- << listview-load-on-demand-custom-view -->
</
RadListView
>
</
GridLayout
>
- tns run android
- In the "Load on Demand" listview example, scroll to bottom, then click "Load More", there is no response
Nativescript-ui-pro version: 1.6.0
Kindly advice.
Clarence