Product Bundles
DevCraft
All Telerik .NET tools and Kendo UI JavaScript components in one package. Now enhanced with:
Web
Mobile
Document Management
Desktop
Reporting
Testing & Mocking
CMS
UI/UX Tools
Debugging
Free Tools
Support and Learning
Productivity and Design Tools
Hi,
When a user uses a filter on the RadgridView and then clicks a button to reload different data in the grid the filters are still there. Is there a way to clear these automatically when reloading data?
Hello Bruno,
There is no automatic mechanism that clears the filters on data reload, but you can do that manually whenever you update the ItemsSource.
// reload the data and then clear the FilterDescriptors collection this.gridView.FilterDescriptors.Clear();
Regards, Martin Ivanov 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.
You can also clear the ColumnFilterDescriptor of the columns, like so:
foreach (var column in gridView.Columns.OfType<GridViewDataColumn>()) { column.ColumnFilterDescriptor.Clear(); }