Updating panel header

Currently updating the panel header seems to reset the dashboard panels, probably caused by a rebind of the data.

e.g.
dashboard.panels[0].header = "test";

Is there a way for me to update the panel header after a dashboard has been initialized?

1 Reply 1 reply marked as answer

SS Sharon Sanchez Selvaraj Syncfusion Team February 25, 2021 11:43 AM UTC

Hi Hosney, 

Greetings from Syncfusion Support. 

We have checked with your reported query and we have created a sample over here for your reference. Using the created event of Dashboard Layout component, the panel header is updated. 

Please check with the code block given here for your reference. 

 
function created(){ 
  console.log("created"); 
  dashboard.panels[0].header="<h4>Header</h4>"; 
} 

Please check with the below sample for your reference. 


If we have misunderstood, kindly share us some additional details on your requirement to assist you promptly. 

Please check with the below links to know more about Dashboard Layout. 




Please get back to us if you need further assistance. 

Regards, 

Sharon Sanchez S 



Marked as answer
Loader.
Up arrow icon