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

RadEditor ImageManager Path display images from other internet sites

1 Answer 56 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Santosh Gupta
Top achievements
Rank 1
Santosh Gupta asked on 19 Sep 2013, 01:14 AM
Hello,

RadEditor is used in MVC application, have 2 questions below.

1. Have a requirement to point Images Manager to an other site with is located outside the web application.
    For example: Is it possible to provide either physical path or complete web path for ViewPath as http://webapp/Images

2. is there an option for RadEditor to point to different ViewPath determined on the fly.

Does RadEditor support image path pointing to outside the web app? OR please let us know if there is any other editor control which supports images view path pointing to site outside the web app and have all the features supported by RadEditor.

Please reply soon. Its urgent.

Thanks in advance.

1 Answer, 1 is accepted

Sort by
0
Marin Bratanov
Telerik team
answered on 20 Sep 2013, 10:21 AM
Hi Santosh,

RadEditor uses a RadFileExplorer for its file management dialogs. They can both only show files from the current web application. You can create a custom provider for them that will access the required files for you. How to do this and some examples are shown in the following resources:
- http://demos.telerik.com/aspnet-ajax/editor/examples/dbfilebrowsercontentprovider/defaultcs.aspx
- http://www.telerik.com/help/aspnet-ajax/editor-custom-filebrowsercontentprovider.html
- http://www.telerik.com/help/aspnet-ajax/fileexplorer-custom-filebrowsercontentprovider.html
- http://www.telerik.com/community/code-library/aspnet-ajax/editor/use-filebrowsercontentprovider-with-physical-path.aspx
- http://www.telerik.com/community/code-library/aspnet-ajax/file-explorer/connect-radfileexplorer-or-radeditor-to-a-sql-databse.aspx

You can use these resources as base to develop your own provider that will fulfill the needs of your application.


You can set the ViewPaths property of the control in dynamically when desired. Note that I am assuming that you are using a webforms page at this point, because this is what RadEditor (and the rest of the RadControls for ASP.NET AJAX) are designed for, so it should have the webform lifecycle. By using that you can change properties of the controls, for example, in the Page_Load event.

We do not have other similar controls and none of them can go out of the current web application, as this would be either a security risk, or forbidden by security settings on the server.


Regards,
Marin Bratanov
Telerik
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 the blog feed now.
Tags
Editor
Asked by
Santosh Gupta
Top achievements
Rank 1
Answers by
Marin Bratanov
Telerik team
Share this question
or