State Maintenance

We have provided the State Maintenance support for Essential JS components.You can sustain the user intractable widget model in browser’s local storage even after form post or browser refresh by defining enablePersistence property as true.

  • //Example
        path: "", 

    Customize the Persistence Properties:

    You can customize the _addToPersist array to achieve the persistence for needed properties of corresponding component.

    Please refer the below code block:

  • //Example
    <script type="text/javascript" src="// "></script> 
     //you can customize it as per your requirement 
     ej.FileExplorer.prototype._addToPersist= ["layout", "selectedFolder", "height", "width"]; 

    We have prepared a sample based on that and you can get it from following location.

    Sample Location