Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / ASP.NET AJAX > FileExplorer > OnClientCreateNewFolder

Not answered OnClientCreateNewFolder

Feed from this thread
  • Anto (DLL Version : 2008.3.1314.35) Master avatar

    Posted on Dec 13, 2011 (permalink)

    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" />
    </telerik:RadFileExplorer>

    function GetName()
    {
                alert('in');
                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,

    Reply

  • Dobromir Dobromir admin's avatar

    Posted on Dec 14, 2011 (permalink)

    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,
    Dobromir
    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

    Reply

Back to Top

Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / ASP.NET AJAX > FileExplorer > OnClientCreateNewFolder
Related resources for "OnClientCreateNewFolder"

ASP.NET FileExplorer Features  |  Documentation  |  Demos  |  Telerik TV  |  Self-Paced Trainer  |  Step-by-step Tutorial  ]