Closed fraluderin closed 6 months ago
@dotnet-policy-service agree
@fraluderin There is already an event FilterChanged
, which seems to do the same
This will only notify you when the filter condition has changed, not when the filtered data has change. It will not notify you about changes to the data when the data source changes. To achieve this you should rather register to the changes on the items.
I added the Filtered
event to get information about items that match applied filter(s). FilterChanged
does not inform me about which items match applied filter. E.g., I need to know which items match after user changes applied filters; source data didn't change.
Is there a way to know this without adding Filtered
event and DataGridFilteredEventArgs
?
Not required, information already available
I needed to be notified when a filtering on DataGrid was completed. More specifically, I needed to know how many items were found with applied filter. So, this PR adds an event 'Filtered' which occurs after filters are applied. Its argument 'DataGridFilteredEventArgs' contains an IList of matching items found. 'DataGridFilteredEventArgs' could eventually be expanded with additional features.