
Good afternoon,
I have a FileManager that I want to perform server-side checks when directories or files are renamed or deleted. For instance, the directory has files that must be kept.
I was hoping to use the command event:
command - API Reference - Kendo UI FileManager - Kendo UI for jQuery
Which mentions:
How, in my delete or update server methods, do I force an e.status of fail, and e.response text explaining why the delete or update was rejected, so I can handle that in the client Command event?
I can see that I could throw an error and then capture that in the Error event, but is it possible to do similar with the Command event? The scenario I'm describing isn't really an error, just some validation that failed.
Kind regards,
Richard


We have a custom command in a UI for ASP.NET Core FileManager control that states the icon as a simple textual name which worked fine in 2023.1.117
items.Add("").Type("button").Name("refresh").Icon("reload").Text("Refresh").Click("onRefresh").HtmlAttributes(new { style = "margin-left: 5px;" });
Everything else within the control works, however the list view and icon view switching buttons do not. Upon clicking the list or icon view buttons as below, the error message at the bottom appears, and I have located no reason why this is the case.
kendo.all.js:313050 Uncaught Error: There is no ViewComponent registered!
at init.view (kendo.all.js:313050:21)
at init.exec (kendo.all.js:313050:21)
at init.executeCommand (kendo.all.js:313050:21)
at init._toolbarClick (kendo.all.js:313050:21)
at init.trigger (kendo.all.js:313050:21)
at init._onSelect (kendo.all.js:313050:21)
at init.trigger (kendo.all.js:313050:21)
at init._select (kendo.all.js:313050:21)
at init.trigger (kendo.all.js:313050:21)
at init._click (kendo.all.js:313050:21)
IHostingEnvironment used in FileManager is long obsoleted.
Any plan to upgrade to IWebHostEnvironment soon?
thank you.
So, basically I do not want clients to have the options to delete or rename files which they have by default when you use FileManager through tag helper. All I need is clients to be able to view available files and download them. Is there any alternative to FileManager to achieve this feature? I greatly appreciate any help or directions. Thank you.
Edit: Using <Context-Menu> tag helper inside the filemanager component accomplished what I was looking for.
Request to impalement this common feature for FileManager
1) Back and Forward feature / button
2) Cut, Copy and Paste feature /Button