We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: June 24, 2019).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Issue using SFListView Orientation and GridLayout.SpanCount at the same time

Thread ID:

Created:

Updated:

Platform:

Replies:

144368 May 2,2019 04:56 PM UTC May 3,2019 06:59 AM UTC Xamarin.Forms 1
loading
Tags: SfListView
Christian
Asked On May 2, 2019 04:56 PM UTC

I think this may be a bug so I wanted to let you know about this.

I was trying to set up the SFListView with a Horizontal orientation and then set the span count within the Grid layout and was only getting a single row.  I couldn't figure out what was happening until I did some testing.  It looks like by setting both, the orientation is transposing how the layout is handled as it appears that setting GridLayout.SpanCount also sets the orientation to horizontal (IE they cancel each other out somehow)

To Replication this, get an item source of a few items and then use:

 <sflistview:SfListView ItemsSource="{Binding YourSource, Mode=TwoWay}" Orientation="Horizontal">
            <sflistview:SfListView.LayoutManager>
                <sflistview:GridLayout SpanCount="4" />
            </sflistview:SfListView.LayoutManager>
</sflistview:SfListView>

Dinesh Babu Yadav [Syncfusion]
Replied On May 3, 2019 06:59 AM UTC

Hi Christian, 
 
Thanks for using Syncfusion product. 
 
We have checked the reported query with SpanCount and Orientation as Horizontal from our side. We would like to inform you that SfListView scrolls properly with horizontal orientation and SpanCount in our sample. We have attached the tested sample for your reference, please find the sample for your reference. 
 
 
Can you please check with the above sample whether you are getting same issue our sample also. Meanwhile, please check whether you have defined any HeightRequest for SfListView. If no please revert us back with the issue replicated sample so that we could able to analyze the reported query better and provide appropriate solution at our end. 
 
Regards, 
Dinesh Babu Yadav 
 


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

Live Chat Icon For mobile
Live Chat Icon