Hi Raouf,
Greeting from Syncfusion.
We have validated the provided information and we suspect that, you want to refresh the parent grid in child grid actions. For your reference, we have refresh the parent in actionComplete event for child grid. In child grid when a row is edited and updated the actionComplete event will be triggered with the requestType as save. In that we have called the parent grid’s refresh method when child grid row is updated.
We also created an external button to refresh the parent grid. In the Hierarchy Grid when parent grid is refreshed it will collapse all the expanded ChildGrid and the grid content and header will be refreshed.
|
Index.js
actionComplete:(args)=>{
if(args.requestType === 'save'){
this.gridInstance.refresh();
}
},
this.btnClick = function(args){
this.gridInstance.refresh();
}
<div className="col-xs-12 col-sm-12 col-lg-6 col-md-6">
<ButtonComponent onClick={ this.btnClick.bind(this) } cssClass='e-info'>Refresh</ButtonComponent>
|
If the above does not meet your requirement or we misunderstood your query then share more or below details that will help us to validate further at our end.
- Share more details(scenario) and pictorial/video representation of your exact requirement.
- Share the grid code details to analyze further.
Regards,
R.Dhivya