Hi Nikunj,
Thanks for contacting Syncfusion support.
Solution for Query 1:
We have looked into your query on maintaining the state of
the panels in the Dashboard Layout component. To achieve your requirement, instead
of using window.localStorage, you can
use the serialize()
method (This method returns the component’s current panel setting which can be used to construct a dashboard with the same layout settings) of the Dashboard Layout component to keep the model object of the current panels
state of the Dashboard Layout. Then, on resetting the component you can recreate with same panels
state using that model object. However,
the panel header information, panel content information cannot be maintained. So, to
update the panels with same content, you can use the updatePanel()
method.
Please, check out the below sample which demonstrates the
above mention details.
State-Maintenance: https://ej2.syncfusion.com/react/documentation/dashboard-layout/state-maintenance/?no-cache=1#panel-state-maintenance
Please, let us know if you need any further assistance.
Solution for Query 2:
We are currently analyzing about your expected requirement.
We will update you with further details about this query in one business day on 29 October 2019.
Regards,
Shameer Ali Baig S.