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

ChpiRemoved events doesn't work

Hi, 
I'm trying to implement SfChip control but I need to handleChildRemoved event. Unfortunately, ChildRemoved event doesn't work at all, nothing happening. I need this event to do filtering on my list when chips is removed.

Regards,
PT

1 Reply

MS Mugundhan Saravanan Syncfusion Team January 18, 2019 03:24 PM UTC

Hi Tosinski,

Greetings from Syncfusion.

In our SfChip control we don’t have implement the ChildRemoved event. You can achieve this by creating ChildRemoved event for the layout which you have used inside the SfChipGroup. We have created a ChildRemoved event for the FlexLayout which used inside the SfChipGroup and it fire when closing the chip, its work as expected.

Please check the sample from the following

Code Snippet:
<StackLayout> 
                <buttons:SfChipGroup  
                            x:Name="chip" 
                             ItemsSource="{Binding Employees}"  
                             ChipPadding="8,8,0,0" 
                             DisplayMemberPath="Name"> 
                    <buttons:SfChipGroup.ChipLayout> 
                        <FlexLayout  
                                         x:Name="flex" 
                                         ChildRemoved="Flex_ChildRemoved" 
                                           HorizontalOptions="Start"  
                                           VerticalOptions="Center"  
                                           Direction="Row"  
                                           Wrap="Wrap" 
                                           JustifyContent="Start" 
                                           AlignContent="Start"  
                                           AlignItems="Start"/> 
                    </buttons:SfChipGroup.ChipLayout> 
                </buttons:SfChipGroup>
    </StackLayout> 


Sample: http://www.syncfusion.com/downloads/support/forum/142069/ze/SfChipSample_updated1766765099  

Please let us know if you have any other concern.

Regards,
Mugundhan S.

Loader.
Up arrow icon