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:
public class ImageEditorSavingEventArgs : ImageEditorEventArgs
Inheritance: objectEventArgsImageEditorEventArgsImageEditorSavingEventArgs
Inherited Members
Constructors
public ImageEditorSavingEventArgs(EditableImage image, string fileName, bool overwriteFile, string argument)
public ImageEditorSavingEventArgs(EditableImage image, string fileName, bool overwriteFile)
public ImageEditorSavingEventArgs(EditableImage image, string fileName)
Properties
Gets or sets additional data that will be passed back to the client-side 'saved' event.
public string Argument { get; set; }
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.
public bool Cancel { get; set; }
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.
public string FileName { get; set; }
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.
public bool OverwriteFile { get; set; }
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.