New to Kendo UI for jQueryStart a free 30-day trial

Command

events

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.

Event Data

e.sender kendo.ui.FileManager

The widget instance which fired the event.

e.status String

The status of the command executed (success, fail or cancel).

e.action String

The action performed by the command (add, remove or itemchange).

e.data Object

Retrieves contextual data that holds information about the item(s) involved in the command's action.

e.response Object

The returned response by the service.

<div id="fileManager"></div>
<script>
    var baseUrl = "https://demos.telerik.com/service/v2/core/filemanager/";

    $("#fileManager").kendoFileManager({
        dataSource: {
            transport: {
                read: {
                    method: "POST",
                    url: baseUrl + "Read"
                },
                update: {
                    method: "POST",
                    url: baseUrl + "Update"
                },
                create: {
                    method: "POST",
                    url: baseUrl + "Create"
                },
                destroy: {
                    method: "POST",
                    url: baseUrl + "Destroy"
                }
            }
        },
        command: function (ev) {
/* The result can be observed in the DevTools(F12) console of the browser. */
            console.log("Command " + ev.action + " - item:" + ev.data.item.path + "; status: " + ev.status);

            if (ev.status === "fail") { // Refresh the FileManager if a command has failed.
                ev.sender.refresh()
            }
        }
    });
</script>
Not finding the help you need?
Contact Support