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

How to add multiple paths to the ImageManager-ViewPaths

1 Answer 13 Views
Editor
This is a migrated thread and some comments may be shown as answers.
jlj30
Top achievements
Rank 2
jlj30 asked on 27 Aug 2012, 09:33 PM
Hi,

We would like to be able to do the following in our RadEditor:
 - Set ImageManager-ViewPaths to point to a common folder PLUS a unique folder for each customer
 - Set ImageManager-UploadPaths and ImageManager-DeletePaths to ONLY point at the unique folder

This way we can offer the customer a variety of images that we provide, plus any they want to add themselves, but they can only upload or delete from their own unique folder.

I tried the following without success:

protected void edtQuestRichText_PreRender(object sender, EventArgs e)
    {
        RadEditor edtQuestRichText = (sender as RadEditor);
        edtQuestRichText.ImageManager.ViewPaths = new String[] { "~/CommonImages", Session["currentCustomerImagesFolder"].ToString() };
    }

Any suggestions?

Thanks in advance

Jim

1 Answer, 1 is accepted

Sort by
0
Rumen
Telerik team
answered on 30 Aug 2012, 12:33 PM
Hi Jim,

I noticed that you are setting the ViewPaths property in the PreRender event handler of RadEditor, but you should do that in the PageLoad event handler as it is shown in the following article: Enforcing Roles.

Kind regards,
Rumen
the Telerik team
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 their blog feed now.
Tags
Editor
Asked by
jlj30
Top achievements
Rank 2
Answers by
Rumen
Telerik team
Share this question
or