25 Answers, 1 is accepted
Thanks - Jeff
I've since dropped the control and wrote my own using the tree control and the upload control. Works well... not as full featured as your control, but I'm having no issues.
I'll try it again on my next project.
Thanks - Jeff
The errors you saw are displayed either if the ASP.NET process fails to perform the disk operation (e.g. not enough permissions for Directory.Create()) or if the path you are trying to modify is not part of the UploadPaths/DeletePaths collections from the FileExplorer configuration. As you already said, the file system permissions have been set correctly, so this leaves the paths in the configuration.
If possible, try upgrading to the latest build (2009.1.402) or send us a sample project that shows this problem so we can investigate further.
Kind regards,
Lini
the Telerik team
Check out Telerik Trainer , the state of the art learning tool for Telerik products.
I am facing problem to hide or disable the delete,rename option in RadFileExplorer control. I want to hide these two option.
Please help me.
Regards
vikas goel
You can achieve this behavior by adding the following code in the codebehind :
This part of the code removes the "Rename" and "Delete" menus from the grid's context menu :
RadFileExplorer1.GridContextMenu.Items.RemoveAt(1); |
RadFileExplorer1.GridContextMenu.Items.RemoveAt(1); |
This part of the code removes the "Rename" and "Delete" menus from the RadTreeView - on the left of the RadFileExplorer object.
RadFileExplorer1.TreeView.ContextMenus[0].Items.RemoveAt(0); |
RadFileExplorer1.TreeView.ContextMenus[0].Items.RemoveAt(0); |
And the following part of the code removes the "Delete" command from the RadToolBar on the top of the RadFileExplorer object :
RadFileExplorer1.ToolBar.Items.RemoveAt(5); |
I hope this helps.
Regards,
Check out Telerik Trainer , the state of the art learning tool for Telerik products.
I am using the latest version of Telerik, Vista running IIS 6 and have the same issue. I can't rename, delete or move files.
I've set all 3 paths in the config and granted the ASP.NET user full control of the folder and the root folder of my demo site I set up to test this control. I get a pop up dialogue advising me the application doesn't have permissions and to contact an admin.
Is there another user I need to grant access/permissions on the folder?
If your web application is using impersonation, then you will need to grant the appropriate permissions to the current user. Otherwise you need to grant read/write permissions to the user, which IIS uses to run your web application (e.g. the application pool identity, network service).
We have not heard anything from Jeff (the original poster) so we are not sure if the problem was resolved in build 2009.1 402 or if it was in his web site configuration.
A couple suggestions - if you have disabled the ViewState of the FileExplorer control, please enable it again. This has been known to cause problems with the control. Also, see if your application runs OK under the ASP.NET development web server from Visual Studio.
Kind regards,
Lini
the Telerik team
Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
The control works fine in the demos, but I had no success getting working reliably when using Windows authentication. While working with it, I pretty much granted full authority to anything and everything to see if I could locate what was hanging up the control... never fixed it.
I'd love to use the control in the future, so perhaps someone will figure out what I'm overlooking.
Perhaps you could create a demo that uses Windows authentication, NTFS, etc. to show how to work with the control in that environment.
Regards - Jeff
Whether your site is using Forms authentication or Windows authentication without impersonation should not matter - the same account (Network Service by default) is used to access resources from the site. If this account has read/write permissions on the physical application files, the file explorer should work.
If you are using windows authentication with impersonation, then the application users will also need to have read/write permissions on the folders, because the server will use their identity to perform operations and access resources.
Finally, your application must be running under Medium trust or higher. Lower trust levels do not allow reading/writing files in the application folder. If you must run your application in a low trust level, then we suggest that you add the Telerik.Web.UI assembly to the server's GAC. This way it will run in Full trust, while the rest of the application will run under your trust level. This will allow the FileExplorer control to work properly.
Greetings,
Lini
the Telerik team
Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
To our surprise, the file explorer was able to do all things i.e. Creating/Deleting/Uploading when we set the config at design time, but doing the same from codebehind gave the same error. "Don't have enough premissions".
We were setting the config values like this:
If (!IsPostback)
{
radMyDocuments.InitialPath = "/UserFiles/AccountID_1/UserID_1/My Documents";
string[] DocPaths = new string[] { radMyDocuments.InitialPath };
radMyDocuments.Configuration.ViewPaths = DocPaths;
radMyDocuments.Configuration.DeletePaths = DocPaths;
radMyDocuments.Configuration.UploadPaths = DocPaths;
}
We removed the check If IsPostback and it started working fine ...
Hope it helps someone....
I think the problem was caused by disabled ViewState on the RadFileExplorer control. You should not set EnableViewState="false" for the file explorer, because it will not be able to remember its configuration between postbacks. The problems you will encounter are likely to be "not enough permissions" - the control will block all file operations because the UploadPaths, DeletePaths will be empty after a postback.
Greetings,
Lini
the Telerik team
Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
I can confirm that this is still a problem in the latest Q2 release.
If I set the paths declaritively using the design time UI, it works fine. If I set it in the Page_Load event, it will let me upload and create folders, but not rename or delete.
I have EnableViewState= true
i have also tried to set the paths in the Init event for the control and the page with no luck. It only seems to work if the paths are declaritively set.
I has been forming the path like this:
Dim sPath = System.IO.Path.Combine(System.IO.Path.Combine(PortalSettings.HomeDirectory, "ReitDocs"), _ReitID.ToString) |
which was giving a string like this:
/Portals/0/ReitDocs\475
Apparantly, the "\" before the 475 is what caused the issue.
I changed the constructor to be like this:
Dim sPath = System.IO.Path.Combine(PortalSettings.HomeDirectory, "ReitDocs") + "/" + _ReitID.ToString |
which yeilds:
/Portals/0/ReitDocs/475
and now all works fine...
pls help
Could you please provide a little bit more information about the problem? It will be best if you open a new support ticket and send us a runnable project that reproduces the problem. We will check it and do our best to provide a solution.
Regards,
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.
Here is a sample of how my paths were set:
\imagelibraries\ministries\
This allowed uploading but broke on deleting
i changed them to
/imagelibraries/ministries/
Now everythign works....Hope this helps someone having the same issue as me.
I have read every post in this thread and tried it on my Control yet I am unable to Delete or rename Files/Folders, I can create New Folders though!!!
I think the problem is with granting permissions... Can someone let me know how do I ensure the permissions are granted correctly?
Awaiting reply....
I recommend you to perform the suggested test in this thread. In case that the test does not show any error messages, could you please isolate the problem in a small runnable project, open a new support ticket and send it to me? I will debug it and do my best to provide a solution as soon as possible.
Kind regards,
Fiko
the Telerik team
<script language=javascript>
Sys.Application.add_load(AppLoad);
function AppLoad() {
Sys.WebForms.PageRequestManager.getInstance().add_endRequest(EndRequest);
Sys.WebForms.PageRequestManager.getInstance().add_beginRequest(BeginRequest);
}
function BeginRequest(sender, args) {
// Clear the error if it's visible from a previous request.
if ($get('Error').style.visibility == "visible")
CloseError();
}
function EndRequest(sender, args) {
// Check to see if there's an error on this request.
if (args.get_error() != undefined) {
// If there is, show the custom error.
$get('Error').style.visibility = "visible";
// Let the framework know that the error is handled,
// so it doesn't throw the JavaScript alert.
args.set_errorHandled(true);
}
}
function CloseError() {
// Hide the error div.
$get('Error').style.visibility = "hidden";
}
</script>
If someone can try it out and see if this is a known issue, it'll be great if it gets fixed in a future version. i'm using a master page, don't know if this matters.
RadFileExplorer's functionality is heavily based on client-side callbacks and ajaxifying the control is not recommended. If you need to avoid postbacks when uploading file, I would recommend you to enable the async upload feature. To do this you need to set EnableAsyncUpload property of RadFileExplorer to true.
Regarding the issue from your second post, if you have RadCompression enabled and you are using .NET 4.0, event handlers might not be raised in a default document in IIS 7 or IIS 7.5 Integrated Mode. Please try setting preCondition="managedHandler" and the runAllManagedModulesForAllRequests setting from your web.config for the RadCompression module.
Regards,
Dobromir
the Telerik team
I could not delete with the following configuration:
<telerik:RadFileExplorer ID="RadFileExplorer1" runat="server" >
<Configuration ViewPaths="~\Docs" UploadPaths="~\Docs" DeletePaths="~\Docs" ></Configuration>
</telerik:RadFileExplorer>
I found the solution was to use the correct slash - ie ~/Docs