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


1 Answer 20 Views
This is a migrated thread and some comments may be shown as answers.
Anto (DLL Version : 2008.3.1314.35)
Top achievements
Rank 2
Anto (DLL Version : 2008.3.1314.35) asked on 13 Dec 2011, 05:47 PM
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,

1 Answer, 1 is accepted

Sort by
Telerik team
answered on 14 Dec 2011, 04:21 PM
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
Asked by
Anto (DLL Version : 2008.3.1314.35)
Top achievements
Rank 2
Answers by
Telerik team
Share this question