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

stop deleting file in particular folder and stop deleting particular folder

1 Answer 18 Views
FileExplorer
This is a migrated thread and some comments may be shown as answers.
sf
Top achievements
Rank 1
sf asked on 21 Jul 2010, 10:42 AM
in root folder I have couple of files and couple of level1 subfolders, I want to stop user being able to delete any files userthe root folder, I also want to stop user being able to delete a particular level1 subfolder called "Member". Is this possible to achieve?

thanks in advance

1 Answer, 1 is accepted

Sort by
0
Petio Petkov
Telerik team
answered on 22 Jul 2010, 02:32 PM
Hello,

I already answered your other post, which is similar to this one.
My suggestion is to handle RadFileExplorer's OnItemCommand server-side event and delete the files only you want, e.g.
   protected void fileExplorer_ItemCommand(object sender, RadFileExplorerEventArgs e)
    {
        switch (e.Command)
        
            case "UploadFile":
                //DO SOMETHIG
                break;
            case "CreateDirectory":
                //DO SOMETHIG
                break;
            case "DeleteFile":
                //DO SOMETHIG
                break;
        }
}

Hope this helps.

Kind regards,
Petio Petkov
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
sf
Top achievements
Rank 1
Answers by
Petio Petkov
Telerik team
Share this question
or