How to add multiple paths to the ImageManager-ViewPaths

2 posts, 0 answers
  1. jlj30
    jlj30 avatar
    102 posts
    Member since:
    Jan 2011

    Posted 27 Aug 2012 Link to this post


    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

  2. Rumen
    Rumen avatar
    14437 posts

    Posted 30 Aug 2012 Link to this post

    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,
    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.
Back to Top