File Move from and to path

3 posts, 1 answers
  1. Jim
    Jim avatar
    42 posts
    Member since:
    Mar 2009

    Posted 23 Feb 2010 Link to this post

    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. Jim
    Jim avatar
    42 posts
    Member since:
    Mar 2009

    Posted 25 Feb 2010 Link to this post

    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.
  3. Answer
    Fiko
    Admin
    Fiko avatar
    1406 posts

    Posted 26 Feb 2010 Link to this post

    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.
Back to Top