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

ListView disappearing inside StackLayout

1 Answer 478 Views
ListView
This is a migrated thread and some comments may be shown as answers.
Osayed
Top achievements
Rank 1
Osayed asked on 02 Jun 2018, 09:34 AM
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.

1 Answer, 1 is accepted

Sort by
0
Didi
Telerik team
answered on 04 Jun 2018, 12:48 PM
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
Tags
ListView
Asked by
Osayed
Top achievements
Rank 1
Answers by
Didi
Telerik team
Share this question
or