When resizing an image in the editor by dragging the handles, how do I maintain the aspect ration?
Preferably, dragging a corner handle would maintain the aspect ratio and dragging a handle in the middle of a side would not.
Thanking you in anticipation.
3 Answers, 1 is accepted
answered on 10 Dec 2009, 12:59 PM
RadEditor is an editable <iframe /> which is based on the rich text editing support of the browsers. Currently FireFox 3 provides this feature while Internet Explorer does not, but it is achievable due to the support of oncontrolselect event.
while resizing or cropping.. is it possible to add "padding" into image so if image is not square and i want it to be square ? and vice versa ?
answered on 24 Dec 2013, 01:15 PM
You could customize the Crop dialog and add a logic that implements the desired functionality to modify the padding of the image and return the modified image into the ImageEditor instead of the original one. I suggest following this live example, in which is explained how to customize a built-in dialog.
If you have any difficulties with this approach, I recommend contacting us within a formal support thread.
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to the blog feed now.