The built-in upload components event cannot be handled through the TagHelper:
<kendo-filemanager name="filemanager">
<upload on-upload="onUpload"></upload>
...
</kendo-filemanager>
When using the following configuration an error is thrown, thus making it unable to set the Grid columns:
<kendo-filemanager name="filemanager" upload-url="@Url.Action("Upload", "FileManagerData")">
<views>
<grid>
<columns>
<column field="name"></column>
</columns>
</grid>
</views>
</kendo-filemanager>
When using the FileManager initialized using the TagHelper and renaming nested folders a 404 error is thrown.
A 404 - File or directory not found is returned
The folder should be renamed
When the FileManager is defined using TagHelpers the defined schema is not serialized
The following FileManager definition:
<kendo-filemanager name="filemanager" upload-url="@Url.Action("FileManagerUpload", "FileManager")">
<filemanager-datasource>
<transport>
<read url="@Url.Action("FileManagerRead", "FileManager")" type="POST" />
<create url="@Url.Action("FileManagerCreate", "FileManager")" type="POST" />
<destroy url="@Url.Action("FileManagerDestroy", "FileManager")" type="POST" />
<update url="@Url.Action("FileManagerUpdate", "FileManager")" type="POST" />
</transport>
<schema>
<filemanager-model id="path" has-children="hasDirectories">
<fields>
<field name="path" type="string" from="Path"></field>
<field name="name" type="string" from="Name"></field>
<field name="extension" type="string" from="Extension"></field>
<field name="created" type="date" from="Created"></field>
<field name="createdUtc" type="date" from="CreatedUtc"></field>
<field name="modified" type="date" from="Modified"></field>
<field name="modifiedUtc" type="date" from="ModifiedUtc"></field>
<field name="size" type="number" from="Size"></field>
</fields>
</filemanager-model>
</schema>
</filemanager-datasource>
<toolbar>
<items>
<item name="createFolder" />
<item name="upload" />
<item name="sortDirection" />
<item name="sortField" />
<item name="changeView" />
<item name="spacer" />
<item name="details" />
<item name="search" />
</items>
</toolbar>
</kendo-filemanager>
generates the following script, without a schema definition:
<script>
kendo.syncReady(function() {
jQuery("#filemanager").kendoFileManager({
"uploadUrl": "/FileManager/FileManagerUpload",
"toolbar": {
"items": [{
"name": "createFolder"
}, {
"name": "upload"
}, {
"name": "sortDirection"
}, {
"name": "sortField"
}, {
"name": "changeView"
}, {
"name": "spacer"
}, {
"name": "details"
}, {
"name": "search"
}]
},
"dataSource": {
"schema": {
"model": {
"id": "path",
"hasChildren": "hasDirectories"
}
},
"transport": {
"destroy": {
"type": "POST",
"url": "/FileManager/FileManagerDestroy"
},
"read": {
"type": "POST",
"url": "/FileManager/FileManagerRead"
},
"update": {
"type": "POST",
"url": "/FileManager/FileManagerUpdate"
},
"create": {
"type": "POST",
"url": "/FileManager/FileManagerCreate"
}
}
}
});
});
</script>
The FileManager DataSource schema should be serialized
The AllowedExtensions configuration for the Upload in the FileManager is not exposed and allowed extensions cannot be configured.
The following configuration for the Upload in a FileManaget is not supported:
@(Html.Kendo().FileManager().Name("filemanager")
.Upload(upld=>upld.Validation(val=>val.AllowedExtensions(new string[] { ".doc" , ".jpg" })))
)
while it is available in a standalone Upload component:
@(Html.Kendo().Upload()
.Name("files")
.Validation(validation => validation.AllowedExtensions(new string[] { ".pdf" }))
)
The allowed extensions should be configurable in the FileManager
File Manager's built-in Search tool filters incorrectly when the input is cleared.
Regression introduced with 2023.1.314
Clearing the Search input's value does not re-render the existing folders and files.
Clearing the Search input's value should re-render the existing folders and files.
When setting the <dialogs>
and/or <messages>
configuration of the FileManager TagHelper
<dialogs>
<upload />
<rename-prompt />
<delete-confirm />
<move-confirm />
</dialogs>
<messages>
<dialogs>
<upload clear="Clear files" />
<move-confirm />
<delete-confirm />
<rename-prompt cancel="Do not rename" ok-text="Yes rename"/>
<export-as-dialog />
<search />
</dialogs>
</messages>
an error is is shown and the configuration cannot be compiled:
RZ2011 Tag helpers 'Kendo.Mvc.TagHelpers.FileManagerDialogsUploadSettingsTagHelper' and 'Kendo.Mvc.TagHelpers.FileManagerMessagesDialogsUploadSettingsTagHelper' targeting element 'upload' must not expect different TagStructure values.
Add the above configuration an the try to compile the FileManager TagHelper configuration.
No error should be thrown and a valid configuration should be compiled.