sfChipGroup SelectionChanged event not firing for Trigger type with ItemTemplate

Hi
This is a follow for threadhttps://www.syncfusion.com/forums/156942/sfchipgroup-selection-indicator-not-showing-when-using-a-custom-itemtemplate
I downloaded the sample in that thread, as was having the same problem using a chip template, and it works fine
However if you upgrade the project use Syncfusion v19.1.0.55, Xamarin Forms v5.0.0.2012, and target Android 10 (API 29), it no longer works.
The `SelectionChanged` event doesnt get triggered and you can't change the state of the selected items. Removing the ItemTemplate and accompany sfChip, selection/deselection works again


1 Reply 1 reply marked as answer

SM Saravanan Madheswaran Syncfusion Team April 12, 2021 07:29 AM UTC

Hi Ben, 
 
Greetings from Syncfusion support.  
 
We would like to let you know that we have enabled touch/mouse recognizer support for ChipGroup’s ItemTemplate. So, the touch was handled by template element instead of ChipGroup.  
 
 
And we can achieve the recommended behavior by setting InputTransparent as true for template element.  
 
<buttons:SfChipGroup.ItemTemplate> 
    <DataTemplate> 
        <StackLayout Orientation="Horizontal" InputTransparent="True"> 
            <buttons:SfChip WidthRequest="40" 
                            ShowSelectionIndicator="{Binding IsChecked}" > 
            </buttons:SfChip> 
        </StackLayout> 
    </DataTemplate> 
</buttons:SfChipGroup.ItemTemplate> 
 
 
 
Regards, 
Saravanan. 


Marked as answer
Loader.
Up arrow icon