Doubleclick files possible in filemanager?

Hi,

I want to use  a method like "recordDoubleClick"  aka double click event used in other syncfusion components on files. Is it possible? And if so, how? 


<ejs-filemanager id='fileObj'

//blabla                 

(fileSelect)='onFileSelect($event)'  //works great for a single click/selection of a file

(recordDoubleClick)="recordDoubleClick($event)"> //doesnt work on a file

</ejs-filemanager>






Thank you in advance!


greetings,

Laurens


1 Reply

IL Indhumathy Loganathan Syncfusion Team December 17, 2021 02:26 PM UTC

Hi Laurens, 
 
Greetings from Syncfusion support. 
 
In File Manager, we have fileOpen event which will trigger while double clicking on the files/folder. You can get the file details (name, filter path, etc.,) in this event argument. Please check the below code snippet. 
 
  fileOpen(args) { 
    //You can get the double clicked file/folder details in this event argument. Check the arguments below. 
 
    // cancel - If you want to cancel this event then, set cancel to true. Otherwise, false. 
    // fileDetails - Return the currently selected item as JSON object. 
    // module - Returns the name of the target module in file manager. 
 
    //You can alse check whether the clicked item is a file or not using the fileDetails isFile property. 
    if (args.fileDetails.isFile) { 
      console.log('Double clicked item is a file'); 
    } 
  } 
 
 
Please let us know if you need any further assistance. 
 
Regards, 
Indhumathy L 


Loader.
Up arrow icon