This is a migrated thread and some comments may be shown as answers.

RadEditor in ImageEditor problems(questions & bugs)

3 Answers 86 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Stefan
Top achievements
Rank 1
Stefan asked on 25 Nov 2010, 10:28 AM

Hello,

One of my current tasks is to modify the Image Editor(RadEditor) to allow the user to do some limited Image manipulations. On this task I've encountered some issues :

1) could Image Editor be modified to include a zoom control? For instance if the user has to take a crop from a 2000 x 3000 pixels image, he can't see the whole image fitted in the window.

2) Is there a way to have Image Editor open with Crop "Enabled" by default ? On careful inspection on the js code on the ascx, there are some props in the prototype init; ie. 

1.this._cropEnabled = true// this doesn't work ?
but none of the changed yield results.

How can the ascx ( or what are the caller parameters ) modified to have crop enabled, and the bounding boxes visible when the Image Editor inits ?

3) When setting the default width and height of the crop area

 

1.//Set initial position
2.this.setBounds({ x: 0, y: 0, width: 70, height: 70 });
All browsers behave and keep these settings, except IE ( which gives a weird value like 48x83 px ). Is this a know bug or I'm dealing with IE faulty box models ? And if there is a known limitation, is there a workaround ?

Thanks!

3 Answers, 1 is accepted

Sort by
0
Dobromir
Telerik team
answered on 01 Dec 2010, 08:01 AM
Hi Stefan,

Straight to your questions:
  1. This is a really useful feature and I have logged it into our database for consideration.
  2. In order to have Crop enabled by default you need to modify the ImageEditor.prototype.initialize function and call enableCrop(true) method, e.g.:
    initialize: function ()
    {
        Telerik.Web.UI.Widgets.ImageEditor.callBaseMethod(this, "initialize");
        this.setupChildren();
     
        var imageEditor = this;
        setTimeout(function () { imageEditor.enableCrop(true) }, 0);
    },
  3. This looks like a problem with Internet Explorer and the calculations of the Resizeble object. I have logged it for further investigation and we will do our best to fix this issue for one of our upcoming releases. Unfortunately, I am unable to provide suitable workaround at this point.

Best wishes,
Dobromir
the Telerik team
Browse the vast support resources we have to jumpstart your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.
0
Imran
Top achievements
Rank 1
answered on 06 Jun 2011, 11:07 PM
Hello Dobromir

Has there been any progress on the #1 above. Since as you mentioned it definitely is a very useful function.

Regards
Imran
0
Rumen
Telerik team
answered on 09 Jun 2011, 12:29 PM
Hi Imran,

We are currently working on a new standalone Image Editor control that we will be released in Q2 2011. We plan to implement the requested Zoom Crop feature for the first version of the control.

Best regards,
Rumen
the Telerik team

Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.

Tags
Editor
Asked by
Stefan
Top achievements
Rank 1
Answers by
Dobromir
Telerik team
Imran
Top achievements
Rank 1
Rumen
Telerik team
Share this question
or