Hi Carlos,
If you need to cancel a command in the execute event handler of the FileManager widget you could use the preventDefault() method and prevent the default behavior.
In the example below the "Move" of the items will be canceled in case the name of the item contains the string "demos":
function onExecute(e) {
var items = e.options.items;
var hasDemos = items.some(function(v) {
return v.includes("demos");
})
kendoConsole.log("event: Execute --> " + e.command);
if(e.command == "MoveCommand" && hasDemos == true){
e.preventDefault()
alert("Canceled!!!")
}
}
Here is a Dojo example where the implementation provided above is used.
I hope the provided information will be helpful.
Regards,
Neli
Progress Telerik