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

Load different file in Image Editor

3 Answers 67 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Unified Development
Top achievements
Rank 1
Unified Development asked on 19 May 2010, 05:39 PM

I save multiple variations of images and then I am filtering the Image Manager filelist to only show 1 of each kind of them.
When I click "Image Editor" to load the ImageEditorDialog, is it possible to load a different file than the one selected from the list?

For example the list shows:
1_thumb.jpg
2_thumb.jpg
...

but when I select 1_thumb.jpg, and click "Image Editor" I want to load "1_source.jpg" for example (which exists but is not shown in the list).

Is there a function that I can override to do this?

3 Answers, 1 is accepted

Sort by
0
Dobromir
Telerik team
answered on 20 May 2010, 03:04 PM
Hi Derek,

In order to achieve the required functionality you need to modify the built-in dialog ImageManager. You need to modify the arguments that ImageManager is sending to the ImageEditor dialog - at present, this is done by _openImageEditor() located in the ImageManager.ascx dialog file.

Detailed information about how to modify built-in dialogs is available in the following Live Demo:
Customize Built-in Dialogs

Greetings,
Dobromir
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
0
Unified Development
Top achievements
Rank 1
answered on 20 May 2010, 05:09 PM
So I guess it is not possible to just override a function like these in a CustomProvider?
Stream GetFile(string url)
string GetFileName(string url)
0
Dobromir
Telerik team
answered on 25 May 2010, 03:09 PM
Hi Derek,

RadEditor's Image Manager and Image Editor dialogs use the same content provider and changes made will affect both Dialogs. That is why I suggested to modify the built-in dialog instead of the overriding content provider's methods.

Best wishes,
Dobromir
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
Tags
Editor
Asked by
Unified Development
Top achievements
Rank 1
Answers by
Dobromir
Telerik team
Unified Development
Top achievements
Rank 1
Share this question
or