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

[Solved] ImageEditor dialog

3 Answers 154 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Suneco
Top achievements
Rank 2
Suneco asked on 18 Aug 2009, 03:21 PM
Hello,

I have the ImageEditor all working now but only thing I need now is to use the custom "ImageEditor.ascx" I made. The way I got it working in a test project is like this.

imageEditor.Parameters["ExternalDialogsPath"] = "~/CustomDialogs/"

This is a way that will not work for me.., As I save all the files as a byte array in the database. So I hope its possible in a sort of way like this.

imageEditor.Parameters["ExternalDialogPath"] = "app_files/CustomDialogs/ImageEditor.ascx"

Thanks in advance,
Jeroen Speldekamp

3 Answers, 1 is accepted

Sort by
0
Svetlina Anati
Telerik team
answered on 20 Aug 2009, 10:54 AM
Hello Jeroen,

What I see as a problem in the provided code is the following:


  1. The parameter you should use is called ExternalDialogsPath and not ExternalDialogPath - note that you should correctly spell it and also keep the casing.
  2. The path should be relative and you should use the tilde (~) to mark the root.
  3. This path is set for all teh dialogs and you should point to the folder which contains the .ascx and not the ascx itself.

Having in mind all of the above, you should change your code in the following manner:

 
 
imageEditor.Parameters["ExternalDialogsPath"] = "~/app_files/CustomDialogs/";  


Note, that this will work if the app_files folder is in the root - otherwise, you should correct the path according to your particular folder hierarchy.

All the best,
Svetlina
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
Suneco
Top achievements
Rank 2
answered on 20 Aug 2009, 02:08 PM

Hello Svetlina,

I know how it's setup.., Already had the custom dialog working the way you described it in a little test project on my desktop. The reason why I started this topic is because the system where I'll have to use the image editor in is totally embedded resource or stored in a database (as a byte[] array). So that is why I hoped that there's a way to directly approach the ascx file as an custom dialog, or is the way you described the only possible way?..,

Thanks in advance,
Jeroen Speldekamp

0
Suneco
Top achievements
Rank 2
answered on 24 Aug 2009, 07:31 AM
Hello,

Got the answer in my support ticket..,
Answer: it ain't possible..,

Thanks,
Jeroen Speldekamp 
Tags
Editor
Asked by
Suneco
Top achievements
Rank 2
Answers by
Svetlina Anati
Telerik team
Suneco
Top achievements
Rank 2
Share this question
or