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

Multiple image editors and open dialog OnClientLoad

3 Answers 55 Views
ImageEditor
This is a migrated thread and some comments may be shown as answers.
Marcel
Top achievements
Rank 1
Marcel asked on 08 May 2012, 08:51 PM
Hi There,

I have multiple image editors loaded on a page. All have a OnClientLoad function which does a executeCommand('crop').
The dialogs are opened, but only the last image editor is showing the crop dialog. The other dialogs seem to be hanging and can't be opened/closed anymore.

Many thanks in advance for your support!

3 Answers, 1 is accepted

Sort by
0
Dobromir
Telerik team
answered on 11 May 2012, 11:19 AM
Hi Marcel,

Thank you for bringing this problem to our attention. I have logged it into our database and we will do our best to have it fixed for one of the upcoming releases. Here you can find the PITS Issue: Public URL

Unfortunately, at this point, I cannot provide suitable workaround on this issue. Please excuse if for the inconvenience.

As a small token of gratitude for your contribution I have updated your Telerik points.

All the best,
Dobromir
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.
0
Tanya
Top achievements
Rank 1
answered on 24 Oct 2014, 07:30 AM
Hi,
I have the same problem. Is the issue has been fixed?
0
Vessy
Telerik team
answered on 28 Oct 2014, 11:48 AM
Hello Tanya,

For the time being this scenario is not supported out of the box when the ImageEditor is used with the default AjaxToolsPanel. The reason for this behavior is caused by the fact that when more than one ImageEditor dialogs are opened at once, the Ajax requests get canceled and only the last one executes fully. In order to workaround this limitation, you can set each ImageEditor's ToolsLoadPanelType property to "XmlHttpPanel":
<telerik:RadImageEditor ID="RadImageEditor1" runat="server" ImageUrl="~/Images/Jellyfish.jpg" OnClientLoad="onClientLoad" ToolsLoadPanelType="XmlHttpPanel"></telerik:RadImageEditor>
<telerik:RadImageEditor ID="RadImageEditor2" runat="server" ImageUrl="~/Images/Jellyfish.jpg" OnClientLoad="onClientLoad" ToolsLoadPanelType="XmlHttpPanel"></telerik:RadImageEditor>
<telerik:RadImageEditor ID="RadImageEditor3" runat="server" ImageUrl="~/Images/Jellyfish.jpg" OnClientLoad="onClientLoad" ToolsLoadPanelType="XmlHttpPanel"></telerik:RadImageEditor>
<script>
    function onClientLoad(imageEditor, args) {
        imageEditor.executeCommand('Crop');
    }
</script>

I hope this helps.

Regards,
Vessy
Telerik
 

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.

 
Tags
ImageEditor
Asked by
Marcel
Top achievements
Rank 1
Answers by
Dobromir
Telerik team
Tanya
Top achievements
Rank 1
Vessy
Telerik team
Share this question
or