I'm implementing a custom FileBrowserContentProvider so that I can access images from a db instead of a filesystem and it is all working fine. I convert the the db images to relative paths and insert them in the page. The folders and files all load up correctly.
The only problem I have is that when I select an image and click on the Image Manager button I cannot get it to open the folders to the selected image. And yet if I navigate to the folder the image is in, the image is shown as selected and shows in the preview pane.
So the image is selected properly but it does not seem to be firing ResolveRootDirectoryAsTree to open the folders in the path to it.
The code I got from telerik has notes that indicate "all subdirectories contained in the SelectedUrl property are loaded"
But they don't load.
Is this a bug or have I missed something?
''' <summary>
''' Loads a root directory with given path, where all subdirectories
''' contained in the SelectedUrl property are loaded
''' </summary>
''' <remarks>
''' The ImagesPaths, DocumentsPaths, etc properties of RadEditor
''' allow multiple root items to be specified, separated by comma, e.g.
''' Photos,Paintings,Diagrams. The FileBrowser class calls the
''' ResolveRootDirectoryAsTree method for each of them.
''' </remarks>
''' <param name="path">the root directory path, passed by the FileBrowser</param>
''' <returns>The root DirectoryItem or null if such does not exist</returns>
Public Overloads Overrides Function ResolveRootDirectoryAsTree(ByVal path As String) As DirectoryItem
' The files are added in ResolveDirectory()
Dim returnValue As New DirectoryItem(GetName(path), GetDirectoryPath(path), path, String.Empty, GetPermissions(path), Nothing, _
GetChildDirectories(path))
Return returnValue
End Function
thanks
Bob paul