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

Not able to Rename and Delete (Upload Works)

2 Answers 90 Views
FileExplorer
This is a migrated thread and some comments may be shown as answers.
Marc
Top achievements
Rank 1
Marc asked on 08 Apr 2010, 11:54 PM
I have the following code, I get a standard prompt when renaming/deleting which prevents those actions from happening. Upload/View work great (also, new folder creation worked too when I had that enabled).  The C# running on postback or not makes no difference.

"The selected file could not be deleted because the application did not have enough permissions.  Please, contact the administrator."

<telerik:RadFileExplorer ID="RadFileExplorer1" runat="server" Height="150px" Width="450px" TreePaneWidth="122px" VisibleControls="Toolbar,ContextMenus,Grid"  
    EnableCreateNewFolder="False" ExplorerMode="Default"></telerik:RadFileExplorer> 


        protected void Page_Load(object sender, EventArgs e) 
        { 
            if (!Page.IsPostBack) 
            { 
                //CONFIGURE EVERYTHING 
                RadFileExplorer1.Configuration.UploadPaths = new string[] { virtualPath }; 
                RadFileExplorer1.Configuration.ViewPaths = new string[] { virtualPath }; 
                RadFileExplorer1.Configuration.DeletePaths = new string[] { virtualPath }; 
                RadFileExplorer1.InitialPath = virtualPath; 
 
                //Remove some buttons 
                RadToolBarButton backBtn = null
                RadToolBarButton forwardBtn = null
                foreach (RadToolBarButton btn in RadFileExplorer1.ToolBar.Items) 
                { 
                    if (btn.Value == "Back"
                        backBtn = btn; 
                    else if (btn.Value == "Forward"
                        forwardBtn = btn; 
                } 
                if (backBtn != null
                    RadFileExplorer1.ToolBar.Items.Remove(backBtn); 
                if (forwardBtn != null
                    RadFileExplorer1.ToolBar.Items.Remove(forwardBtn); 
 
                //set the props for the upload control 
                SetUploadProperties(); 
                 
                RadFileExplorer1.Grid.MasterTableView.NoDetailRecordsText = "Upload files using right mouse click or the upload button."
            } 
        } 
 
        private void SetUploadProperties() 
        { 
            string[] extensionsSearch = new string[XMLFileExtensions.AllowedFileTypes.Count]; 
            for (int x = 0; x < XMLFileExtensions.AllowedFileTypes.Count; x++) 
            { 
                extensionsSearch[x] = "*." + XMLFileExtensions.AllowedFileTypes[x].FileExtension; 
            } 
            RadFileExplorer1.Configuration.SearchPatterns = extensionsSearch; 
            RadFileExplorer1.Configuration.MaxUploadFileSize = 10485760;  
        } 



2 Answers, 1 is accepted

Sort by
0
Dobromir
Telerik team
answered on 13 Apr 2010, 04:50 PM
Hi Marc,

I tried to reproduce the problem with the provided information but to no avail - some of the elements' declarations were missing in the provided code, so I used generic values. Could you please provide more detail information on the subject:
  • What version of RadControls you are using in your project?
  • Under which browser and its version this problem occurs?
  • Could you please open a support ticket and provide a sample runnable project that reproduce the problem so we can investigate it further?
  • Could you please provide the exact steps that need to be executed in order to reproduce the problem?

Best wishes,
Dobromir
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.
0
Marc
Top achievements
Rank 1
answered on 15 Apr 2010, 05:06 PM
Sorry, it turns out I had an extra slash in my paths.  After removing that it worked fine.
Tags
FileExplorer
Asked by
Marc
Top achievements
Rank 1
Answers by
Dobromir
Telerik team
Marc
Top achievements
Rank 1
Share this question
or