Hi Harshad,
Greetings from Syncfusion support.
Yes, when you utilize the EnablePersistence
property, you additionally need to set the ID
for the Blazor Dashboard Layout component. Because the data will be persisted
based on the component ID,
for persistence, it is mandatory to provide an ID.
However, the EnablePersistence
property persists the component's state between page reloads.
Refer to the below code snippets.
[Index.razor]
|
<SfDashboardLayout ID="dashboard" CellSpacing="@(new double[]{10 ,10 })" Columns="6" EnablePersistence=true>
<DashboardLayoutPanels>
…
</DashboardLayoutPanels>
</SfDashboardLayout>
…
|
For your reference, we have attached the sample.
Sample: Attached as a zip file.
Check out the attached sample and let us know if you need
any further assistance.
Regards,
Prasanth Madhaiyan.
Attachment:
BlazorDashboard_6ddbe321.zip