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

[Solved] How to change Directory Names at Runtime?

1 Answer 104 Views
FileExplorer
This is a migrated thread and some comments may be shown as answers.
Jon
Top achievements
Rank 2
Jon asked on 08 Jan 2010, 05:14 PM
Hi I am using a custom Content Provider using a SQL database and have had great success but..

Is there a way to intercept and change the Directory Names before end user presentation?
A typical path in my system looks like: Root\Objects\ObjectType (14)\Object (14.52)\

I want to show Root\Objects\Practitioners\John Doe\

I have no problem doing the translation but I need to do it at Runtime and not store it that way otherwise if John Doe changed his name my directory association would be lost.

Thanks,
Marc

1 Answer, 1 is accepted

Sort by
0
Fiko
Telerik team
answered on 13 Jan 2010, 02:17 PM
Hello Marc,

Your requirement is a custom solution that depends on the logic of the application and it is not related to  RadFileExplorer. Please note that (if you decide to implement it) you will need to make modifications in the logic of DBContentProvider in order to achieve the desired result.

In your case I suggest you check the implemented provider in this KB article where the real paths (like C:\Folder1\Flder2) are hidden and replaced by custom defined paths. You can use a similar approach in your case.

I hope this helps.


Best wishes,
Fiko
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Tags
FileExplorer
Asked by
Jon
Top achievements
Rank 2
Answers by
Fiko
Telerik team
Share this question
or