How to capture "Close" of a filter chip?

I have a ChipGroup for filtering (with an Input for adding new items).
I can capture the completion on the Input, to modify my underlying collection, but how do I capture the "Close" button click, so I can perform appropriate business logic?

I know I can register for ChildRemoved event on the layout - but this is messy, because it can fire when the UI is being destroyed.

Thanks,

1 Reply

SJ Suyamburaja Jayakumar Syncfusion Team March 16, 2020 12:48 PM UTC

Hi Adam, 
 
Greetings from Syncfusion. 
 
We have suggested the any of the following ways to get the “Notification for identifying Chip has been closed”  
               
         ChildRemoved event from ChipLayout 
         CollectionChanged event with Remove action for its collection of ChipGroup 
 
As per your update, here we have suggested to use CollectionChanged notified event as per in below code snippet 
 
private void Languages_CollectionChanged(object sender, System.Collections.Specialized.NotifyCollectionChangedEventArgs e) 
        { 
          if(e.Action == System.Collections.Specialized.NotifyCollectionChangedAction.Remove) 
            { 
                //. . .  
            } 
        } 
 
 
We would like to let you know that we have already considered this “Support to recognize the tap action on close button in chip group “ as feature and we have already logged a feature request on this, and it can be tracked through our feedback portal below.  
 
 
Please cast your vote to make it count. We will prioritize the features every release based on the demands and we do not have immediate plan to implement this feature since we committed with already planned work. So, this feature will be available any of our upcoming release. 
 
If you have any more specification/suggestions to the feature request, you can add it as a comment in the portal. 
 
I hope this information helps. If you need any further assistance, please don't hesitate to contact us. 
 
Regards, 
Suyamburaja J. 


Loader.
Up arrow icon