Hello Matthew,
I'm sharing my answer from our private discussion here, so the community can benefit from it too.
====
To reset the Grid filters, you can clear the FilterDescriptors collection within the Grid state.
<GridToolBarTemplate>
<GridSearchBox />
<TelerikButton ThemeColor="primary" OnClick="@ClearGridFilter">Clear Filters</TelerikButton>
</GridToolBarTemplate>
...
private async Task ClearGridFilter()
{
GridState<SampleData> desiredState = new GridState<SampleData>()
{
//clears the filter list in the new Grid state
FilterDescriptors = new List<IFilterDescriptor>()
};
await GridRef.SetStateAsync(desiredState);
}
REPL example: https://blazorrepl.telerik.com/cnYhmePa18XcXOGI28
====
Regards,
Yanislav
Progress Telerik
Hi Jeff,
We have considered similar options in the past but decided that such functionality is more appropriate to a Spreadsheet component, which is why clearing filters can happen on specific columns only. However, you can implement such a functionality using a custom button (e.g. in the toolbar of the Grid) that clears all filters (or modifies them in a way that suits your needs).
Regards,
Stamo Gochev
Progress Telerik
Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.