Panel state maintenance is not working

Could you please provide us  an example for saving panel position.

we have 2 panels, we are expecting user to position the panel as per their wish and save their preference.

Show user preference on next page loads


1 Reply

IL Indhumathy Loganathan Syncfusion Team June 28, 2023 01:31 PM UTC

Hi Mahesh,


Greetings from Syncfusion support.


The current layout structure of the Dashboard Layout component can be obtained and saved to construct another dashboard with same panel structure using the serialize public method of the component. This method returns the component’s current panel setting which can be used to construct a dashboard with the same layout settings.


However, you can retrieve the panel details (SizeXSizeYRowColId) using the serialize method and reset it based on your requirement.


Additionally, the content within the panels will vary based on different users' needs, and it might be any HTML element regardless of Syncfusion controls. We cannot determine the content inside the Dashboard panels and their respective configurations. Therefore, we suggest that you manually save the panel content from the components in your application.


Check out the below documentation for your reference.

https://ej2.syncfusion.com/aspnetcore/documentation/dashboard-layout/state-maintenance


Regards,

Indhumathy L


Loader.
Up arrow icon