RadListView - does the NS version support multiple item-templates

Thread is closed for posting
2 posts, 0 answers
  1. dash
    dash avatar
    17 posts
    Member since:
    Nov 2016

    Posted 23 Mar 2017 Link to this post

    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'">
         <template key="green">
           <Label text="{{ age }}" style.backgroundColor="green" />
         <template key="red">
           <Label text="{{ age }}" style.backgroundColor="red" />
  2. Nikolay Tsonev
    Nikolay Tsonev avatar
    340 posts

    Posted 24 Mar 2017 Link to this post

    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 "nativescript-telrik-ui" versions.

    For further info, you could keep track on the issue for further info.
    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.
Back to Top