Skip to content

ListView w/"itemTemplates" (multiple templates) cannot be used with TabView #4678

Closed

Description

@jgraffite

In Nativescript 3.0, I cannot use two or more ListView with itemTemplates together in the same page. They are not displayed and when I try to access one through by id with Javascript, I get a undefined element even it exists on xml page

Activity

  1. NickIliev commented on Aug 9, 2017

    @NickIliev
    Contributor

    @jgraffite using this sample application I was able to successfully create and use two list views with ItemTemplates

    Check the events responsible for the items binding and if the event where you are trying to get the ID is included in your XML file.

  2. jgraffite commented on Aug 10, 2017

    @jgraffite
    Author

    Ok. I will test it. But try to test it inside a tabview

  3. NickIliev commented on Aug 10, 2017

    @NickIliev
    Contributor

    @jgraffite I can confirm that indeed when ListView with multiple templates is nested within TabView it is not rendered (nor the TabView). Loggin this as a bug.

    Steps to reproduce - nest a ListView with multiple ItemTemplates within TabView
    or use this test project.

    Reproducible with tns-core-modules 3.1.0 on iOs and Android.

  4. changed the title [-]Two ListView with "itemTemplates" cannot be used together on same page/view[/-] [+]ListView w/"itemTemplates" (multiple templates) cannot be used with TabView[/+] on Aug 10, 2017
  5. added this to the milestone on Aug 29, 2017
  6. hshristov commented on Oct 7, 2017

    @hshristov
    Contributor

    This is fixed with 3.2

  7. lock commented on Aug 27, 2019

    @lock

    This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

  8. locked and limited conversation to collaborators on Aug 27, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions