Edit this page

OnClientCommandExecuting

The OnClientCommandExecuting event is raised when the user fires a command of the control. The event can be canceled.

The event handler receives the following parameters:

  1. The RadImageEditor client instance that fired the event.

  2. Event arguments object. You can call its get_commandName() method to get the command name. You can cancel the event by calling its set_cancel(true) method

<telerik:RadImageEditor RenderMode="Lightweight" runat="server" ID="RadImageEditor1" OnClientCommandExecuting="OnClientCommandExecuting"></telerik:RadImageEditor>
<script type="text/javascript">
    function OnClientCommandExecuting(sender, eventArgs)
    {
        alert("OnClientCommandExecuting event fired. Command name was: " + eventArgs.get_commandName());
        eventArgs.set_cancel(true); //cancels the event
    }
</script>

See Also