Child components of the dashboard layout are not getting refreshed even if their properties are changed.

I'm rendering a card component (defined in a different component/folder) inside a panel of the dashboard layout component and I'm experiencing refresh issues. Even after the properties (state) of the card is changed nothing is visible in the browser. I have verified that the properties of card are really changed by console logging.

I have tried the dashboard layout refresh() followed by the Card state alteration, setting the Card properties from the dashboard layout and even tried using ChangeDetectorRef. Nothing works. The Card Component is a bit complex, but I have ensured that there is nothing wrong with it by rendering it without dashboard and it perfectly refreshes without any efforts. Any suggestions would be helpful. I cannot send my work files but let me know if you really need code samples.


1 Reply

LD LeoLavanya Dhanaraj Syncfusion Team July 11, 2024 05:00 PM UTC

Hi Sanojan,


Greetings from Syncfusion support.


Based on the details you have provided, we understand that you are experiencing an issue with the Dashboard panel content refreshment. We would like to confirm that you mentioned using the card component and facing issues after changing the card properties. Please clarify if you used our Syncfusion Card component as a panel content or any other elements. If not, share the exact code details of the element you have rendered inside the panel. We also recommend refreshing the panel content element after changing the properties. Providing a sample code and video footage of the issue replication will help us validate and provide a timely solution.


Card component : https://ej2.syncfusion.com/angular/documentation/card/getting-started


Regards,

Leo Lavanya Dhanaraj


Loader.
Up arrow icon