Add a picker in groupheader

I have a DB with 2 tables : FATHER and SON.
SON table has a field IDfather for FATHER table ID link.
I have a listview based on a table SON, and I group data on IDfather.
I have a field REPEAT in FATHER table I'd like to show a groupheader and modify with a picker.

How to do so?


1 Reply 1 reply marked as answer

LN Lakshmi Natarajan Syncfusion Team November 30, 2020 12:39 PM UTC

Hi Marc, 
 
Thank you for using Syncfusion products. 
 
We have checked the reported query “Add a picker in groupheader” from our side. We would like to inform you that you can add picker in the GroupHeader template. Please refer the following code snippets for more reference, 
 
<syncfusion:SfListView x:Name="listView" AutoFitMode="DynamicHeight" ItemsSource="{Binding ContactsInfo}"> 
    <syncfusion:SfListView.GroupHeaderTemplate> 
        <DataTemplate> 
            <Picker x:Name="picker" Title="Select group field" TitleColor="Red"> 
                <Picker.ItemsSource> 
                    <x:Array Type="{x:Type x:String}"> 
                        <x:String>ID</x:String> 
                        <x:String>Contact type</x:String> 
                    </x:Array> 
                </Picker.ItemsSource> 
            </Picker> 
        </DataTemplate> 
    </syncfusion:SfListView.GroupHeaderTemplate> 
</syncfusion:SfListView> 
 
You can also refer to the following documentation to customize the GroupHeaderTemplate from the following link, 
 
Also, we would like to know more details about your requirement. Could you please share the following details to understand your query better which help us to provide you the appropriate solution, 
  • Share ListView templates
  • Share replication video
 
Regards, 
Lakshmi Natarajan 


Marked as answer
Loader.
Up arrow icon