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

[Solved] standalone filemanager/imagemanager

5 Answers 195 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Raymond Mui
Top achievements
Rank 1
Raymond Mui asked on 20 May 2008, 09:06 AM
I found that a standalone ImageManager/FileManager is very useful in many cases, not in any RadEditor.  Can it be implemented this way?

5 Answers, 1 is accepted

Sort by
0
Raymond Mui
Top achievements
Rank 1
answered on 21 May 2008, 05:53 AM
When reading the 2008.1.515 release notes, a "fix" of RadEditor is

"6. The Image Manager and Image Editor can now be used without a RadEditor control on the page."

It seems to be the feature I am looking for.

May I ask how this can be accomplished? 

Thanks
0
Dimcho
Telerik team
answered on 21 May 2008, 10:32 AM
Hi Raymond Mui,

I suggest you check the following Knowledge Base article which shows how to use Image and Document managers outside the RadEditor control.



Greetings,
Dimcho
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Raymond Mui
Top achievements
Rank 1
answered on 22 May 2008, 09:56 AM
I tried to follow the KB article.  However, the ImageManager activation button and the image are in a RadGrid.  From the client javascript ImageManagerFunction, how can I make a reference to the GridItem?

Thanks
0
Raymond Mui
Top achievements
Rank 1
answered on 23 May 2008, 06:32 AM
Regarding the ClientCallBackFunction for the ImageManagerDialog mentioned in the article, there are two parameters, one sender (should be the button that triggers the ImageDialog) and args

May I ask what info does the second parameter (args) carries?

As I asked before, if it possible to reference to an ASP:Image object from the javascript?

My situation is that: I have a grid, and wanted to allow user to choose an image of each row.  Therefore ImageManagerDialog is very usable here.

Thanks
0
George
Telerik team
answered on 27 May 2008, 01:58 PM
Hi Raymond,

Regarding "May I ask what info does the second parameter (args) carries":
The args parameter returns the needed information about the event e.g.
   var selectedItem = args.SelectedItem;
   var resultImageObject = args.Result;

As to the "From the client javascript ImageManager function, how can I make a reference to the GridItem" question:
Please review the following CodeLibrary that shows how to achieve the desired behavior - http://www.telerik.com/community/code-library/submission/b311D-eeghk.aspx


I hope this helps.

Sincerely,
George
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
Tags
Editor
Asked by
Raymond Mui
Top achievements
Rank 1
Answers by
Raymond Mui
Top achievements
Rank 1
Dimcho
Telerik team
George
Telerik team
Share this question
or