RadEditor in ImageEditor problems(questions & bugs)

4 posts, 0 answers
  1. Stefan
    Stefan avatar
    1 posts
    Member since:
    Sep 2010

    Posted 25 Nov 2010 Link to this post

    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!

  2. Dobromir
    Admin
    Dobromir avatar
    1633 posts

    Posted 01 Dec 2010 Link to this post

    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.
  3. Imran
    Imran avatar
    25 posts
    Member since:
    Mar 2009

    Posted 06 Jun 2011 Link to this post

    Hello Dobromir

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

    Regards
    Imran
  4. Rumen
    Admin
    Rumen avatar
    13804 posts

    Posted 09 Jun 2011 Link to this post

    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.

Back to Top