This is a migrated thread and some comments may be shown as answers.

RadListView - does the NS version support multiple item-templates

1 Answer 57 Views
ListView
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
dash
Top achievements
Rank 1
dash asked on 23 Mar 2017, 09:44 PM

Similar to what is documented in the base ListView - but doesn't seem to work.

This is NS w/o Angular.

<ListView items="{{ myItems }}" itemTemplateSelector="age > 18 ? 'green' : 'red'">
   <ListView.itemTemplates>
     <template key="green">
       <Label text="{{ age }}" style.backgroundColor="green" />
     </template>
     <template key="red">
       <Label text="{{ age }}" style.backgroundColor="red" />
     </template>
   </ListView.itemTemplates>
</ListView>

1 Answer, 1 is accepted

Sort by
0
Nikolay Tsonev
Telerik team
answered on 24 Mar 2017, 09:27 AM
Hello,
At the moment this scenario with multiple templates support has been available only for the pure NativeScirpt ListView

For your convenience, I have logged a new feature request for supporting this feature for RadListView control, where the other users could vote for it.
if there is an interest for such a feature, this functionality will be available for some of the next "--" versions.

For further info, you could keep track on the issue for further info.
Regards,
nikolay.tsonev
Telerik by Progress
Did you know that you can open private support tickets which are reviewed and answered within 24h by the same team who built the components? This is available in our UI for NativeScript Pro + Support offering.
Tags
ListView
Asked by
dash
Top achievements
Rank 1
Answers by
Nikolay Tsonev
Telerik team
Share this question
or