This is a migrated thread and some comments may be shown as answers.

Clear SearchPanel Value

2 Answers 297 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Harald
Top achievements
Rank 2
Harald asked on 18 Feb 2018, 04:59 PM
If the user hides the searchpanel, the search values in the Background are still active. How can this i delete the values when the user closing the searchpanel.

2 Answers, 1 is accepted

Sort by
0
Accepted
Dinko | Tech Support Engineer
Telerik team
answered on 21 Feb 2018, 11:55 AM
Hi Harald,

To clear the search criteria when you close the search functionality of the RadGridView you can subscribe to the SearchPanelVisibilityChanged event of the control. In the event handler, you can clear the search criteria. This approach is further described in the Events section of the Search as You Type help article in our documentation.

Regards,
Dinko
Progress Telerik
Want to extend the target reach of your WPF applications, leveraging iOS, Android, and UWP? Try UI for Xamarin, a suite of polished and feature-rich components for the Xamarin framework, which allow you to write beautiful native mobile apps using a single shared C# codebase.
0
Harald
Top achievements
Rank 2
answered on 26 Feb 2018, 10:31 AM
Thank you. That works exactly as I wanted.
Tags
GridView
Asked by
Harald
Top achievements
Rank 2
Answers by
Dinko | Tech Support Engineer
Telerik team
Harald
Top achievements
Rank 2
Share this question
or