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

[Solved] Custom DB Provider ResolveDirectory Not Firing

1 Answer 97 Views
FileExplorer
This is a migrated thread and some comments may be shown as answers.
Tim
Top achievements
Rank 1
Tim asked on 09 Apr 2013, 10:32 PM
Hi All,

I have modified the Custom DB Provider to read from a table with records of folders and files.
Each record has a column with the full path versus the demo which has each folder separated.

My modifications have not deviated to any great extent from the original demo.

The problem I am encountering is that the ResolveDirectory is called only once following the initial call of ResolveRootDirectoryAsTree.

All of the folders render and the ResolveRootDirectoryAsTree is called whenever a folder is first expanded.

ResolveDirectory does not fire when folders are expanded and no files are shown.

Each Folder is loaded into a Directory Item:

name "mySubfolder
fullpath "Root/myFolder/mySubfolder/"
location "Root/myFolder/"
tag String.Empty,
permissions PathPermissions.Read
File Items null for ResolveRootDirectoryAsTree, populated for ResolveDirectory
Directory Items null for ResolveDirectory, populated for ResolveRootDirectoryAsTree

Each File is loaded into a File Item:

filename "myfile.jpg"
extension ".jpg"
size int64
path "Root/myFolder/mySubfolder/myfile.jpg"
filehandlerURL "..."
tag String.Empty
permissions PathPermissions.Read

I can post a snippet if need be, but I was wondering if anyone has encountered this or if the above structure is incorrect before I do so.

The downloaded Custom DB Provider works fine, only the modified copy has this issue.


Cheers,





1 Answer, 1 is accepted

Sort by
0
Tim
Top achievements
Rank 1
answered on 09 Apr 2013, 11:01 PM
Found the issue.  My paths were incorrect for the ViewPaths etc.  I had Physical instead of Virtual.
Tags
FileExplorer
Asked by
Tim
Top achievements
Rank 1
Answers by
Tim
Top achievements
Rank 1
Share this question
or