- Home
- Forum
- Angular - EJ 2
- Regarding the event firing in ejs filemanager
Regarding the event firing in ejs filemanager
When a folder is clicked in the navigation panel(To see the folders inside it). There is no event firing to capture some data like folder key. Directly before send is firing. Is there any specific event?,ive tried almost all the events, but no progress.
Attachment: Screenshot_20251216_164805_87f3b45d.png
Hi Hariprasath,
Thank you for reaching out.
In the FileManager component, when a folder is clicked in the navigation pane (to view its contents), the fileOpen and fileSelect events are triggered before the beforeSend event. These events provide the details of the clicked folder, through their event arguments.
We have prepared a sample where both events are handled, and a simple message is logged to the console when a folder in the navigation pane is clicked.
Code snippet:
|
<ejs-filemanager id='overview' [ajaxSettings]='ajaxSettings' [toolbarSettings]="toolbarSettings" [contextMenuSettings]="contextMenuSettings" [view]='view' (fileOpen)="fileOpen($event)" (fileSelect)="onFileSelect($event)"> </ejs-filemanager> onFileSelect(args: any) { console.log("Fileselect event is triggered"); } fileOpen (args:any) { console.log("Fileopen event is triggered"); }
|
Sample: https://stackblitz.com/edit/angular-lsh43tye-6sqvk9du?file=src%2Fapp.component.html
Please review the sample and let us know if it addresses your requirement.
Regards,
Praveen Sellappan
You can see ...when I click the arrow near pictures, to see the folders inside it in the navigation panel. Those two events you've told me above aren't firing. I want to find if there is an event for it which will fire, so I can take the details of that specific picture folder (like the folder key and so on)
Attachment: image_4_d1c7ddf.png
Hi Hariprasath Senathiraja,
Regards,
Prasanth Madhaiyan.
below is my part of before send(action = read).And also ive added my fileopen event below. You can see i use fileopen to send the current folderkey to the backend. But due to there is no event firing when trying to expand that current node. I couldn't get the folder key of the specific folder. Is there any solution for this?
Hi Hariprasath Senathiraja,
Thank you for the update and for detailing your implementation.
As you noted, both events expose folder context when a folder is opened (via double-click in the file list or expanding/selecting in the navigation pane):
You are retrieving file details (including the folderKey for folders) in the fileOpen event. Similarly, the beforeSend event provides access to the same folder details through the event arguments, where you can retrieve any custom properties associated with the folder. To demonstrate this, we have prepared a sample where we extract the folder details from args.ajaxSettings.data within the beforeSend event.
For demonstration purposes, we have logged the retrieved folder details to the console.
Code snippet:
|
<ejs-filemanager id='filemanager' [ajaxSettings]='ajaxSettings' [toolbarSettings]="toolbarSettings" [contextMenuSettings]="contextMenuSettings" [allowDragAndDrop]='true' (beforeSend)="send($event)"> </ejs-filemanager> public send(args:any) { if(args.action == "read"){ var filedetails= JSON.parse(args.ajaxSettings.data); console.log(filedetails.data[0]) }
}
|
Here is the sample for your reference: https://stackblitz.com/edit/angular-uahwqhvb-pmi9xmop?file=src%2Fapp.component.ts
To help us pinpoint the gap you’re facing, could you clarify the following:
- In fileOpen, which exact fields are you successfully accessing?
- In beforeSend, which fields are you unable to access?
- If you can provide a minimal reproducible sample or confirm the fields value you need (original vs expected), we’ll suggest the precise event and mapping.
We look forward to your feedback.
Regards,
Praveen Sellappan
- 5 Replies
- 3 Participants
-
HS Hariprasath Senathiraja
- Dec 17, 2025 03:15 AM UTC
- Dec 22, 2025 12:01 PM UTC