Hi Viji Palanisamy,
Greetings from Syncfusion Support.
We have reviewed your query regarding clearing the search
from the grid. We suggest you to use gridInstance.searchSettings.key as empty
string(‘’) to clear the search from the grid. The code snippet of the
implementation and sample have been attached for your reference.
|
componentDidUpdate(prevprops) {
if (this.gridInstance && prevprops) {
this.gridInstance.searchSettings.key = ''; //empty string
}
}
|
Sample: https://stackblitz.com/edit/passing-props-to-child-component-in-react-1gkyxq?file=Grid.js,index.js
Please let us know if you need any further assistance.
Regards,
Dineshnarasimman M