I have attached a sample that shows how to upload an image in the RadImageEditor control, to customize the Crop command so that the size of the crop box is changed and to fire the crop command when the image is uploaded.
This sample is based on the Upload and Edit Image
demo and the information in the help article Custom Crop Settings
Note that the uploaded image is accessible in the event handler RadImageEditor1_ImageLoading
as the image
variable (which is an instance of EditableImage
), so you can use it to change the size of the image in the editor as required in your scenario.
Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.