How to add multiple paths to the ImageManager-ViewPaths

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

    Posted 27 Aug 2012 Link to this post

    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
  2. Rumen
    Admin
    Rumen avatar
    12846 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,
    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.
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top