2 posts, 0 answers
  1. Anto (DLL Version : 2008.3.1314.35)
    Anto (DLL Version : 2008.3.1314.35) avatar
    212 posts
    Member since:
    Mar 2009

    Posted 13 Dec 2011 Link to this post

    Hi Everybody,

    Creating new folder in file explorer is not working for me. I tried creating it on client side.
    I tried using the following method, it didn't worked, it shows the alert('in') repeatedly like a loop, and its not going through.

    Anyone please give me a suggestion.

    <telerik:RadFileExplorer runat="server" ID="FileExplorer1" Width="95%" Height="450px"
      OnClientDelete="OnClientDelete" CssClass="rfeFocus" AllowPaging="true" PageSize="6"
      EnableCopy="true"   EnableCreateNewFolder="true" OnClientCreateNewFolder="GetName">
                   <Configuration ViewPaths="~/FileExplorer/Default/Root Folder/Documents" UploadPaths="~/FileExplorer/Default/Root 
                      Folder/Documents" DeletePaths="~/FileExplorer/Default/Root Folder/Documents" />
                   <KeyboardShortcuts FocusFileExplorer="Ctrl+f2" FocusToolBar="Shift+1" FocusAddressBar="Shift+2"
                     FocusTreeView="Shift+3" FocusGrid="Shift+4" FocusGridPagingSlider="Shift+5" UploadFile="Ctrl+u"
                     Back="Ctrl+k" Forward="Ctrl+l" NewFolder="Ctrl+n" Refresh="Ctrl+f3" ContextMenu="Shift+m" />

    function GetName()
                var MyFM = $find('<%= FileExplorer1.ClientID %>');
                var appRoot = '<%= VirtualPathUtility.ToAbsolute("~") %>';
                MyFM.createNewDirectory(appRoot + "/Test", "556477");

    Any one please provide a solution to this issue.

    Thank You,
  2. Dobromir
    Dobromir avatar
    1633 posts

    Posted 14 Dec 2011 Link to this post

    Hi Anto,

    The infinite loop that occurs is due to the fact that the GetName() function is set as a handler to the ClientCreateNewFolder client-side event, and inside its body you are calling RadFileExplorer's createNewDirectory() method, which triggers the event to be raised.

    Could you please explain in more details what exactly you are trying to achieve?

    All the best,
    the Telerik team
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now
Back to Top