How can I cause refresh on parent from child in hierarchical grid

Hello,

How can I cause refresh on parent from child in hierarchical grid?

Thanks

3 Replies

DR Dhivya Rajendran Syncfusion Team February 17, 2020 09:54 AM UTC

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. 

  1. Share more details(scenario) and pictorial/video representation of your exact requirement.
  2. Share the grid code details to analyze further.
 
Regards, 
R.Dhivya 



RA raouf February 17, 2020 04:15 PM UTC

Thank for your answer. It got me started on the right track to solve my problem.



DR Dhivya Rajendran Syncfusion Team February 18, 2020 06:36 AM UTC

Hi Raouf, 

Thanks for your update.  

We are happy to hear that provided suggestion was helpful to resolve the problem. Please get back to us if you require further assistance. 

Regards, 
R.Dhivya 


Loader.
Up arrow icon