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

Is it possible to use linear layout for a set of grouped items and grid layout for another set of grouped items in a single Listview

Thread ID:

Created:

Updated:

Platform:

Replies:

144171 Apr 23,2019 11:48 AM UTC Apr 24,2019 05:47 AM UTC Xamarin.Forms 1
loading
Tags: SfListView
Thiru S
Asked On April 23, 2019 11:48 AM UTC

I have a listview with 2 types of items in the ItemSource. The Items are grouped based on the their type under 2 headers. I use a grid layout for the Layout Manager property. Is it possible to use a linear layout for the 1st group of items and a grid layout for the 2nd group of items. Or is there any other way to achieve this?

ScreenShot

Dinesh Babu Yadav [Syncfusion]
Replied On April 24, 2019 05:47 AM UTC

Hi Thiru, 
 
Thanks for contacting Syncfusion support. 
 
We would like to inform you that LayoutManager cannot be applied based on ViewCell and it is common for all templates loaded inside SfListView. We regret to inform you that your requirement to apply different LayoutManager for different groups cannot be achieved in SfListView. But you can use default StackLayout and Grid inside your DataTemplate to customize the view based on your requirement. Please let us know if you need any further assistance. 
 
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