Is there a way to reset the Persistence for Dashboard Layout like it is possible to reset for Data
Greetings from Syncfusion support.
We understand that you need to save and restore the panels in the Blazor Dashboard Layout component. Based on your requirement, we have prepared and included the Dashboard Layout sample with the latest version(20.4.50). The current layout structure of the Dashboard Layout component can be obtained and saved to construct another dashboard with the same panel structure using the Serialize method of the component.
This method returns the component’s current panel position properties (SizeX, SizeY, Row, Col, Id), 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.
Leo Lavanya Dhanaraj
I think you might have misunderstood my question. The current Dashboard Layout has the property EnablePersistence that saves the dashboard panel's position and size. I was wondering if there is a way to reset this data similar to what you have with DataGrid's method ResetPersistDataAsync().
Sorry for the inconvenience.
Currently, we do not have direct support for resetting the persistence of panel position in the Blazor Dashboard Layout component. However, you can retrieve the panel details (SizeX, SizeY, Row, Col, Id) 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 the aforementioned details and if you are struggling with these scenarios, please share the sample you have tried and the exact use case of your requirement and get back to us if you need any further assistance.
Can it be made a feature request?
I am already changing the dashboard layout panels to their original position using Serialize and then doing MovePanelAsync and ResizePanelAsync but would prefer something permanent like what you have with Grid.
Nick, we have validated your reported query in the Blazor Dashboard Layout component. Currently, we do not have direct support for resetting the persistence of data in the Dashboard Layout component. Based on the importance of this requirement, we have considered this as a feature from our end. Support for this feature will be included in any of our upcoming releases.
Usually, Syncfusion will plan and implement the features based on feature rank, customer requested count, and volume wish-list. We will let you know when this feature is planned for upcoming releases. The status of the implementation can be tracked through the below portal link.
Please get back to us if you need any further assistance.