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

EnablePersistence="true"

I found the EnablePersistence="true" event to save grid operations. If so, where are these operations saved and what if I want to interfere? Suppose: When I publicize this site, not 1 I use it, but many users. If it is saved on each person's browser, then I want when I update the operations on the server, the subcomputers should be the same.


1 Reply

PS Prathap Senthil Syncfusion Team April 10, 2023 03:10 PM UTC

Hi Qu?c  Duong,

Thank you for reaching out to us regarding your query on EnablePersistence in the Syncfusion grid. We understand your concern about maintaining the same grid state across different computers.To address your concern, we would like to inform you that enabling EnablePersistence will maintain the grid state on the specific computer's browser storage. However, to maintain the same state across different computers, we suggest using a public string variable in your application to store the current grid state. You can use the GetPersistDataAsync method to retrieve the current state and store it on the main computer. To maintain the same state on sub-computers, you can manually handle the SetPersistDataAsync method using the stored grid state.


We hope this solution meets your requirements. For more information, please refer to our documentation on handling grid state manually:
https://blazor.syncfusion.com/documentation/datagrid/state-management#handling-grid-state-manually
https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.Grids.SfGrid-1.html#Syncfusion_Blazor_Grids_SfGrid_1_GetPersistDataAsync
https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.Grids.SfGrid-1.html#Syncfusion_Blazor_Grids_SfGrid_1_SetPersistDataAsync_System_String_

Regards,
Prathap S


Loader.
Live Chat Icon For mobile
Up arrow icon