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:
- Fired when server command is executed (copy, move, delete or rename).
- The event is useful to get feedback when server commands has failed or succeeded and take additional actions based on the status.
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