Rename a Directory

2 posts, 0 answers
  1. Anthony
    Anthony avatar
    14 posts
    Member since:
    Apr 2009

    Posted 06 Oct 2009 Link to this post

    Hi, I am getting an error when I try to rename a directory in the File Explorer. To reproduce this error I right-click the item in either the treeview or gridview, change the name, and either hit enter or click somewhere else on the screen to make the changes. When I hit enter the following error appears on my screen. This error only appears when I am renaming a directory, it doesn't happen when I am renaming a file.

    System Error:
    System.ArgumentOutOfRangeException: Length cannot be less than zero. Parameter name: length at System.String.InternalSubStringWithChecks(Int32 startIndex, Int32 length, Boolean fAlwaysCopy) at Telerik.Web.UI.RadFileExplorer.RenameTreeNode(RadTreeNode node, String newName) at Telerik.Web.UI.RadFileExplorer.RadTreeView1_NodeEdit(Object sender, RadTreeNodeEditEventArgs e) at Telerik.Web.UI.RadTreeView.OnNodeEdit(RadTreeNodeEditEventArgs e) at Telerik.Web.UI.RadTreeView.RaisePostBackEvent(String eventArgument) at Telerik.Web.UI.RadTreeView.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) at System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) at System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) at System.String.InternalSubStringWithChecks(Int32 startIndex, Int32 length, Boolean fAlwaysCopy) at Telerik.Web.UI.RadFileExplorer.RenameTreeNode(RadTreeNode node, String newName) at Telerik.Web.UI.RadFileExplorer.RadTreeView1_NodeEdit(Object sender, RadTreeNodeEditEventArgs e) at Telerik.Web.UI.RadTreeView.OnNodeEdit(RadTreeNodeEditEventArgs e) at Telerik.Web.UI.RadTreeView.RaisePostBackEvent(String eventArgument) at Telerik.Web.UI.RadTreeView.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) at System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) at System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
  2. Lini
    Admin
    Lini avatar
    2144 posts

    Posted 08 Oct 2009 Link to this post

    Hi,

    Which version of the RadControls are you using? Does this happen with the default content provider or a custom one? Try updating to the latest official build and if that doesn't help, send us some more information about your scenario - e.g. how is the file explorer configured, a screenshot of the control before you try to rename, etc.

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