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

Showing selected image in standalone img editor

1 Answer 35 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Tommy
Top achievements
Rank 1
Tommy asked on 14 Oct 2008, 03:41 PM
Hi
I need to use a standalone image editor and have used the example found here:
http://www.telerik.com/community/forums/thread/b311D-bemgcg.aspx

However all i need to do is save the image name to my database so i have adjusted the JavaScript as followed:

function ImageManagerFunction(sender, args)
{
var selectedItem = args.SelectedItem;
var resultImageObject = args.Result;
var Filename;
var txt = $get('<%= txtLinkImage.ClientID %>');
if (document.all)
{
Filename = selectedItem.getPath();
txt.value= Filename.replace('/media/content/','');
}
else
{
txt.value = selectedItem.getPath();
}
}

PROBLEM:
If I re-open the editor it does not show the selected image on the righthand side. Does anyone know a work around.

Many thanks
T

1 Answer, 1 is accepted

Sort by
0
George
Telerik team
answered on 17 Oct 2008, 10:42 AM
Hi Tommy,

Could you please open a support ticket and send us your sample runnable project where the behavior can be reproduced, along with some screenshots that demonstrates it and the exact steps to do so? We will examine it locally and do our best to provide a solution.

Regards,
George
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
Editor
Asked by
Tommy
Top achievements
Rank 1
Answers by
George
Telerik team
Share this question
or