We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
close icon

Ways to reset the persistence

Is there a way to reset the Persistence for Dashboard Layout like it is possible to reset for Data


5 Replies

LD LeoLavanya Dhanaraj Syncfusion Team February 20, 2023 05:27 PM UTC

Hi Nick,


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 (SizeXSizeYRowColId), 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.


Regards,

Leo Lavanya Dhanaraj


Attachment: SfDashboardSerialize_dec5bd2c.zip


NI Nick replied to LeoLavanya Dhanaraj February 20, 2023 07:08 PM UTC

Hi Lavanya,

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()​.

 



LD LeoLavanya Dhanaraj Syncfusion Team February 22, 2023 04:33 PM UTC

Hi Nick,


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 (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 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.



NI Nick replied to LeoLavanya Dhanaraj February 22, 2023 08:24 PM UTC

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.



LD LeoLavanya Dhanaraj Syncfusion Team February 28, 2023 10:18 AM UTC

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.


https://www.syncfusion.com/feedback/41586/provide-support-for-resetting-the-persisted-data-in-the-blazor-dashboard-layout


Please get back to us if you need any further assistance.


Loader.
Live Chat Icon For mobile
Up arrow icon