ProgressNS / nativescript-ui-feedback

This repository is used for customer feedback regarding Telerik UI for NativeScript. The issues system here is used by customers who want to submit their feature requests or vote for existing ones.
Other
115 stars 21 forks source link

Radlistview template doesn't render items #1334

Closed vahidvdn closed 4 years ago

vahidvdn commented 4 years ago

Tell us about the problem

When I want to display items of an array by Radlistview, it doesn't render the template. It seems a default template is being rendered.

Which platform(s) does your issue occur on?

Android

Please provide the following version numbers that your issue occurs with:

Please tell us how to recreate the issue in as much detail as possible.

After importing NativeScriptUIListViewModule in app.module I have the following template:

<GridLayout>
    <RadListView [items]="items">
        <ng-template tkListItemTemplate let-item="item">
            <StackLayout orientation="vertical">
                <!-- HERE IS NOT DISPLAYING -->
                <Label class="nameLabel" text="THIS TEXT IS NOT DISPLAYING"></Label>
            </StackLayout>
        </ng-template>
    </RadListView>
</GridLayout>

items is an array of 50 elements (from 0 to 49). What I see is:

0
1
2
3
...

I have this problem with RadlistView. ListView is working fine.

vahidvdn commented 4 years ago

I should've imported the NativeScriptUIListViewModule into home.module instead of app.module