New to Telerik UI for ASP.NET AJAX? Start a free 30-day trial
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:
-
The RadImageEditor client instance that fired the event.
-
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
ASP.NET
<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>