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. Image for the cookie policy date
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

How to bind multiple field in the group header?

Platform: Xamarin.Forms |
Control: SfListView |
Published Date: October 9, 2018 |
Last Revised Date: October 15, 2018
Tags: general, listview

ListView allows you to bind multiple fields in the group header template using IValueConverter with the help of GroupResult to get various information (Levels, Items, SubGroups, etc.) and pass the values in ConverterParameter for converter.  

XAML

 

C#

 

You can access multiple fields by adding conditions to check whether the necessary parameter is label or image in converter. 

Screenshot

 

Click here to download the sample.

2X faster development

The ultimate Xamarin UI toolkit to boost your development speed.
ADD COMMENT
You must log in to leave a comment
Comments
Eduardo Luczinski Junior
Oct 29, 2020

Hi! What does the '.'(dot) mean for the Converter?

Text="{Binding .,Converter={StaticResource TemplateConverter}, ConverterParameter={x:Reference Name=grouplabel}}"

Regards,

Eduardo.

Reply
Ali
Jun 27, 2021

"." Means Current list object.

Ali
Jun 27, 2021

This is great sample for multiple column grouping listview. I am facing one issue while using this above method, On taping list item, i have to update one list item group property which is not getting updated. Lets say in some above scenario we have image button Apply(Default:false) on tapping it is updated with true along with PropertyNotification, however it is not update in UI. Any idea how to achieve this?

Reply

Please sign in to access our KB

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

Up arrow icon

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