I have put this in my ascx file and I already have a ImageEditorTool with
the command name CustomPrint. But it seems that it isn't firing in the codebehind.
I tried it using breakpoint and still it isn't firing. Any help?
The other tools(not custom) are working. I am also making this under vb.net coding
the command name CustomPrint. But it seems that it isn't firing in the codebehind.
I tried it using breakpoint and still it isn't firing. Any help?
The other tools(not custom) are working. I am also making this under vb.net coding
<telerik:RadImageEditor ID="CurrentPageImage" runat="server" Height="100%" Width="100%" OnImageEditing="CurrentPageImage_ImageEditing">
<Tools>
<telerik:ImageEditorToolGroup>
<telerik:ImageEditorTool CommandName="Rotate" ToolTip="Rotate Image" IsToggleButton="true">
</telerik:ImageEditorTool>
<telerik:ImageEditorTool CommandName="RotateRight" ToolTip="Rotate Right by 90 degrees">
</telerik:ImageEditorTool>
<telerik:ImageEditorTool CommandName="RotateLeft" ToolTip="Rotate Left by 90 degrees">
</telerik:ImageEditorTool>
<telerik:ImageEditorTool CommandName="Flip" ToolTip="Flip Image" IsToggleButton="true">
</telerik:ImageEditorTool>
<telerik:ImageEditorTool CommandName="FlipVertical" ToolTip="Flip Image Vertically">
</telerik:ImageEditorTool>
<telerik:ImageEditorTool CommandName="FlipHorizontal" ToolTip="Flip Image Horizontally">
</telerik:ImageEditorTool>
<telerik:ImageEditorTool CommandName="Zoom" ToolTip="Zoom Image" IsToggleButton="true">
</telerik:ImageEditorTool>
<telerik:ImageEditorTool CommandName="ZoomIn" ToolTip="Zoom In">
</telerik:ImageEditorTool>
<telerik:ImageEditorTool CommandName="ZoomOut" ToolTip="Zoom Out">
</telerik:ImageEditorTool>
<telerik:ImageEditorTool CommandName="CustomPrint" ToolTip="Print" ImageUrl="~/Images/PDFViewer/pdf-view-12-print.png" >
</telerik:ImageEditorTool>
</telerik:ImageEditorToolGroup>
</Tools>
</telerik:RadImageEditor>
<
script
type
=
"text/javascript"
>
Telerik.Web.UI.ImageEditor.CommandList.CustomPrint = function (imageEditor, commandName, args) {
var commandText = "CustomPrint";
var commandArgument = "Additional Argument Sent to the Server";
imageEditor.editImageOnServer(commandName, commandText, commandArgument, callbackFunction)
}
function callbackFunction(clientData, serveData) {
}
</
script
>