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.
Unfortunately, activation email could not send to your email. Please try again.

Persist user ui settings

Thread ID:





127687 Dec 2,2016 09:17 AM Jan 26,2017 02:27 AM JavaScript 7
Tags: ejFileExplorer
Asked On December 2, 2016 09:17 AM

Is there an option to persist settings per user? For example when a user clicks the grid view instead of the large icons that every instance of the file explorer will be showing the gridview...

Balamurugan P [Syncfusion]
Replied On December 5, 2016 04:02 AM

Hi Wouter, 
Thanks for using Syncfusion Products.  
We have analyzed your reported requirement “Persist user intractable UI settings in FileExplorer” and you can achieve this,  by setting the “enablePersistence” as true. Please refer following code block to persist the user interactions of FileExplorer.  
Code block [JavaScript]: 
       isResponsive: true, 
       width: "100%", 
       minWidth: "150px", 
       fileTypes: "*.png, *.gif, *.jpg, *.jpeg, *.docx", 
       layout: "grid", 
       enablePersistence: true, 
       ajaxAction: "http://js.syncfusion.com/demos/ejServices/api/FileExplorer/FileOperations"                 
We have prepared a sample based on this and you can find the sample under the following location: 
Please let us know if you require any further assistance. 

Replied On December 5, 2016 06:24 AM

Thanks, seems missing in the documentation...

Piramanayagam Ramakrishnan [Syncfusion]
Replied On December 6, 2016 04:20 AM

Hi Wouter, 
Sorry for the inconvenience.  
Unfortunately, we didn’t provide this in help document. We will update the document in online on or before end of this month (December 2016).  We appreciate your patience until then. 
Piramanayagam R  

Replied On January 24, 2017 04:41 AM

I think its in the documentation now: https://help.syncfusion.com/api/js/ejfileexplorer#members:enablepersistence

Is it possible to customize the addToPersist array?

Balamurugan P [Syncfusion]
Replied On January 25, 2017 07:36 AM

Hi Wouter, 
Yes, you can customize the “_addToPersist array as shown in below code block. Here you have to add this customization code after refereeing the “ej.web.all.min.js” file. 

<script type="text/javascript" src="//cdn.syncfusion.com/ "></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. 

Please let us know if you require any further assistance. 

Balamurugan P 

Replied On January 25, 2017 07:42 AM

Yep, that works, but it seems to me that this variable is meant to be private. Since this is outside the public api I guess this can be changed without notice in the changelogs?

Balamurugan P [Syncfusion]
Replied On January 26, 2017 02:27 AM

Hi Wouter, 
For this customization, usually we suggest “_addToPersist” variable to all. Also we will add this API in our online documentation within five business days 2nd Feb, 2017. That help you to track the changelogs regarding the “_addToPersist” private API. 



This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.