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

ImageManager ViewPaths display problem

1 Answer 163 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Mattias
Top achievements
Rank 1
Mattias asked on 06 Feb 2021, 04:15 AM

Hi there,

 

I set two seperate ViewPaths for the RadEditor.ImageManager, but somehow there's only the latter path "~/Image2" displayed in the ImageManger, I couldn't find the first view path. Could you please let me know how to solve it?

 

 

 

Protected Sub Page_Load(ByVal sender As Object, ByVal e As EventArgs) Handles Me.Load
        Dim viewPaths As String() = New String() {"~/Image", "~/Image2"}
        Dim uploadPaths As String() = New String() {"~/Image/New", "~/Image2/New"}
        Dim deletePaths As String() = New String() {"~/Image/Del", "~/Image2/Del"}
 
        If Not IsPostBack Then
            radEditor.ImageManager.ViewPaths = viewPaths
            radEditor.ImageManager.UploadPaths = uploadPaths
            radEditor.ImageManager.DeletePaths = deletePaths
        End If
    End Sub

1 Answer, 1 is accepted

Sort by
0
Vessy
Telerik team
answered on 09 Feb 2021, 02:18 PM

Hi Mattias,

The provided setup is proper, but such behavior can be experienced if any of the folders passed to the ImageManager.ViewPaths cannot be found. Can you, please, make sure that the "~/Image" folder actually exists in the root of the application and it has access to it?

Regards,
Vessy
Progress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.

Tags
Editor
Asked by
Mattias
Top achievements
Rank 1
Answers by
Vessy
Telerik team
Share this question
or