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

ImageEditor cropping does not work

1 Answer 91 Views
ImageEditor
This is a migrated thread and some comments may be shown as answers.
maurice
Top achievements
Rank 1
maurice asked on 05 Sep 2012, 03:15 PM
I am very new to using this rad Control and unfamilar with how it works. I am loading the image via a ajax call, as shown in one of the demos. After the image is loaded, When I select the crop icon, the dialog comes up but does not load properly, the textboxs are not editable and the dropdown list is not working. When I select the crop button to crop the image, it does not crop around the area that the tool was hovered over. 

 <telerik:RadImageEditor ID="ImageEditor" runat="server" ToolsFile="~/DataPages/Basic.xml" ToolsLoadPanelType="XmlHttpPanel"<br>                Width="820px" Height="383px" EnableResize="false" OnImageEditing="RadImageEditor1_ImageEditing" <br>                ><br>                <Tools><br>                    <telerik:ImageEditorToolGroup><br>                 <telerik:ImageEditorTool CommandName="Crop" /><br>        <telerik:ImageEditorToolSeparator /><br>        <telerik:ImageEditorTool CommandName="MakeGrayscale" ToolTip="Make Grayscale" ImageUrl="/img/bw.png" /><br>        <telerik:ImageEditorTool CommandName="RoundCorners" ToolTip="Round Corners" ImageUrl="/img/rounded.png" /><br>                        <br>                    </telerik:ImageEditorToolGroup><br>                </Tools><br>            </telerik:RadImageEditor>

function LoadImageIntoEditor(photoID) {//Load Image
        $find("<%= RadAjaxManager.GetCurrent(Page).ClientID %>").ajaxRequest("LoadImage*" + photoID);
    }

1 Answer, 1 is accepted

Sort by
0
Vessy
Telerik team
answered on 10 Sep 2012, 11:08 AM
Hi Maurice,

The issue you are experiencing comes from the fact that you are using the RadImageEditor with ToolsLoadPanelType="XmlHttpPanel". This means that the ImageEditor will use RadXmlHttpPanel to load its dialogs and the XmlHttpPanel has some already known issues when used with RadScriptManager (and/or StyleSheetManager) in Firefox. You could find more detailed information on the subject in here: Known Issues help section.

In order to workaround this problem,  my suggestion is to set ToolsLoadPanelType="AjaxPanel" of the ImageEditor.

Kind regards,
Veselina
the Telerik team
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 their blog feed now.
Tags
ImageEditor
Asked by
maurice
Top achievements
Rank 1
Answers by
Vessy
Telerik team
Share this question
or