How to add Type Column in Filemanager in Javascript

hi Team,

Can you please help me with how i can add type column in ej2 filemanager. I have tried adding like this but it is showing blank values

Sample: https://stackblitz.com/edit/qiwyv6?file=index.ts

 detailsViewSettings: {
            columns: [
                {
                    field: 'name'headerText: 'Name'customAttributes: { class: 'e-fe-grid-name' }
                },
                {
                    field: '_fm_modified'headerText: 'DateModified'format: 'MM/dd/yyyy hh:mm a'
                },
                {
                    field: 'size'headerText: 'Size'template: '<span class="e-fe-size">${size}</span>'format: 'n2'
                },
                {
                    field: 'type'headerText: 'Type',
                }
            ]
        }

2 Replies

ME Mouli Eswararao November 16, 2023 07:12 AM UTC

Hi Team,

Any update on this ?



MK Muthukrishnan Kandasamy Syncfusion Team November 17, 2023 08:19 AM UTC

Hi Mouli,


Thanks for contacting Syncfusion support.


We have validated your reported problem with the shared sample. We would like to let you know that type field is denoting the file extension so, it will show empty for folders. Also, in your shared sample you can see that type will show the value for files.


Refer to the below screenshot,



Refer to the documentation,


https://ej2.syncfusion.com/documentation/file-manager/file-operations#file-request-and-response-contents:~:text=File%20size-,type,File%20extension,-The%20following%20table


Regards,

Muthukrishnan K


Loader.
Up arrow icon