Manual store State Persistence

Hi,

Is it possible to manual store State Persistence? For instance when I press a save button?

Thanks in advance!

Regards,

Peter

1 Reply 1 reply marked as answer

VS Vignesh Sivagnanam Syncfusion Team February 11, 2021 02:04 PM UTC

Hi Peter 

Greetings from Syncfusion support 

Based on your query we found that that you want to store the grid persistence data by the button click. You can retrieved the data using the getPersistData method of the Grid. In the sample we acquired by the button click event and stored in the variable. 

Please refer the below Code Example and Sample for your reference 

Code Example: 
BtnClick: function () { 
      var info = JSON.parse(this.$refs.grid.ej2Instances.getPersistData()); 
      console.log(info); 
    }, 


Regards 
Vignesh Sivagnanam 


Marked as answer
Loader.
Up arrow icon