ListView disappearing inside StackLayout

2 posts, 0 answers
  1. Osayed
    Osayed avatar
    7 posts
    Member since:
    Feb 2018

    Posted 02 Jun 2018 Link to this post

    Hello, when I put the Telerik ListView inside a StackLayout, it disappears. I'm trying to add a search box but without a stacklayout the Entry is not visible. And with a stacklayout the ListView is not visible.

    I am using Xamarin.Forms, Visual Studio with the latest version of Telerik.
  2. Didi
    Admin
    Didi avatar
    379 posts

    Posted 04 Jun 2018 Link to this post

    Hello Osayed,

    This is a common issue when the ListView component is inside StackLayout and the ItemSource property is initially an empty list (or empty ObservableCollection), the ListView is not visible on screen, even after items are added later on. 

    I have logged this in our Feedback Portal, you could follow the item in the link below:
    https://feedback.telerik.com/Project/168/Feedback/Details/250897-listview-android-ios-listview-is-not-rendered-if-inside-stacklayout-and-the

    At the moment, suitable workaround I could suggest is replacing the StackLayout with Grid layout. 
    For more details, please take a look at the topic in our Forum about ListView not showing up here.

    Regards,
    Didi
    Progress Telerik
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Back to Top