Dashboard Layout panel contents - How to read them and persist to DB for restore functionality

Hi,

Can you please let me know  regarding , how to get and save the dashboard layout panel contents ?, this is required for enabling a restore functionality of the dashboard layouts.
the panel contents will be mostly syncfusion visualization tools and other controls

thanks

1 Reply 1 reply marked as answer

SA Shameer Ali Baig Sulaiman Ali Baig Syncfusion Team July 24, 2020 11:56 AM UTC

Hi Vigneshwaran, 
 
Greetings from Syncfusion support. 
 
We have looked into your query on Dashboard Layout. In DashboardLayout component, using  this serialize() method, you can get the only the panel position properties ( SizeX, SizeY, Row, Col, Id ).  
 
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. 
 
Since, content within the panels will vary based on the different user’s need and it might be any HTML elements regardless of Syncfusion controls, we cannot determine the content inside the dashboard panels and their respective configurations. So, we have no in-built functionality in Dashboard Layout to handle the content inside the panels. Therefore, we suggest you to manually save the panel content from the components in your application. 
 
Please, check out the following links to know more about SF Dashboard Layout. 
 
 
 
 
 
Please, let us know if you have any concerns. 
 
Regards, 
Shameer Ali Baig S. 


Marked as answer
Loader.
Up arrow icon