New to Telerik UI for ASP.NET AJAX? Start a free 30-day trial

Provides event data for the RadImageEditor's ImageSaving event. Contains information about the image being saved and allows control over the save operation.

Definition

Namespace:Telerik.Web.UI

Assembly:Telerik.Web.UI.dll

Syntax:

C#
public class ImageEditorSavingEventArgs : ImageEditorEventArgs

Inheritance: objectEventArgsImageEditorEventArgsImageEditorSavingEventArgs

Inherited Members ImageEditorEventArgs.ImageEventArgs.Emptyobject.ToString()object.Equals(object)object.Equals(object, object)object.ReferenceEquals(object, object)object.GetHashCode()object.GetType()object.MemberwiseClone()...

Constructors

C#
public ImageEditorSavingEventArgs(EditableImage image, string fileName, bool overwriteFile, string argument)
Parameters:imageEditableImagefileNamestringoverwriteFileboolargumentstring
C#
public ImageEditorSavingEventArgs(EditableImage image, string fileName, bool overwriteFile)
Parameters:imageEditableImagefileNamestringoverwriteFilebool
C#
public ImageEditorSavingEventArgs(EditableImage image, string fileName)
Parameters:imageEditableImagefileNamestring
C#
public ImageEditorSavingEventArgs(EditableImage image)
Parameters:imageEditableImage

Properties

Gets or sets additional data that will be passed back to the client-side 'saved' event.

C#
public string Argument { get; set; }
Property Value:

A string containing custom data to pass to the client.

This property allows you to pass custom information from the server-side save event back to the client-side event handlers for further processing.

Gets or sets a value indicating whether the image saving operation should be canceled.

C#
public bool Cancel { get; set; }
Property Value:

true to cancel the save operation; false to allow it to proceed.

Setting this property to true prevents the default save operation from occurring, allowing you to implement custom saving logic in the event handler.

Gets or sets the filename that will be used when saving the image.

C#
public string FileName { get; set; }
Property Value:

A string containing the desired filename for the saved image.

This property allows you to modify the filename before the save operation occurs. If left empty, the control will generate an appropriate filename based on the original image.

Gets or sets a value indicating whether an existing file with the same name should be overwritten.

C#
public bool OverwriteFile { get; set; }
Property Value:

true to overwrite existing files; false to avoid overwriting.

When set to false and a file with the same name exists, the save operation may fail or prompt the user for action, depending on the implementation.