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

File Move from and to path

2 Answers 56 Views
FileExplorer
This is a migrated thread and some comments may be shown as answers.
Jim
Top achievements
Rank 1
Jim asked on 23 Feb 2010, 11:04 PM
I am aware of CurrentFolder to get path of entire path. If user is moving file from one folder to another, how do I get variables for the from and to folders? Is it possible to get just the folder name and not the entire path?
I realize I can parse it, just wondering if there is a variable with the value so if my currentFolder = "~/Docs/345/22/Before Picture/", how do I just get "Before Picture"

2 Answers, 1 is accepted

Sort by
0
Jim
Top achievements
Rank 1
answered on 26 Feb 2010, 01:03 AM
Any help telerik gurus?

How do I know the moved to and moved from folders for a document?

I have to update records in the database related to the location of the docs, so if somebody moves a file to another folder, I have to do an update.
0
Accepted
Fiko
Telerik team
answered on 26 Feb 2010, 04:26 PM
Hi Jim,

You can attach a handler to the OnItemCommand server-side event of the RadFileExplorer control. In the handler, you can check the performed operation (e.Command property) and then you can check the command name and if the performed operation is move, then perform the desired actions. You can get the original item's path and the its new path by using the e.Path and e.NewPath properties of the passed argument. More details about the OnItemCommand event can be found in this help page.

I hope this helps.

Best wishes,
Fiko
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
Tags
FileExplorer
Asked by
Jim
Top achievements
Rank 1
Answers by
Jim
Top achievements
Rank 1
Fiko
Telerik team
Share this question
or