Hello!
So I am currently using a sfdatagrid to hold my data. I have a custom filtering logicf that I am implementing that will control the itemsource of the datagrid. The way my data is setup, the default filter behavior will not return anything back. The issue I am having is that I am overriding the filter changing event, but because I am not technically letting the event follow through, there is no predicates being added to the column, thus the icon on my column header will still show as "not filtered", and when I click the filters icon. The "Clear Filter" button is not active. Is there a way to directly control these components? I would like to make the filter look active even if there isn't any predicates that way they can clear the filter, and I can write custom logic for that clear filter button press. I am not sure if this is possible or not, or if I will just have to write my own custom filter popup.
private void DataTableMain_FilterChangingAsync(object sender, GridFilterEventArgs e)
{
var column = e.Column.MappingName;
var filterValue = e.FilterPredicates;
FilterController.ApplyFiltersAndHideRows(filterValue, column);\
e.Handled = true;
}
Thanks!