The text set to the custom dropdown buttons added to the FileExplorer's Toolbar is not visible in LightWeight rendering, unless the tooltips of the buttons are also configured. Workaround (set the tooltip of the added button): RadToolBarDropDown dropDown = new RadToolBarDropDown("PageSize"); dropDown.Text = "Page Size"; dropDown.ToolTip = "Page Size"; RadFileExplorer1.ToolBar.Items.Add(dropDown);
For the time being the following workaround can be used: <telerik:RadFileExplorer ID="RadFileExplorer1" runat="server" Width="230px" Height="430px" DisplayUpFolderItem="true" ExplorerMode="FileTree"> </telerik:RadFileExplorer> <script> Telerik.Web.UI.RadFileExplorer.prototype._onTreeContextMenuItemClicked = function (sender, args) { var treeNode = args.get_node(); var menuItem = args.get_menuItem().get_value(); switch (menuItem) { case "Rename": treeNode.startEdit(); var nodeInput = treeNode.get_inputElement(); if (!this._allowFileExtensionRename) { var item = this._createItemFromTreeViewNode(treeNode); if (!item.isDirectory()) nodeInput.value = $T.FileExplorerHelper.stripExtension(item); } this._attachFileNameValidator(nodeInput); var treeUL = sender.get_childListElement(); this._treeKeyDownDelegate = Function.createDelegate(this, this._treeKeyDown); if (treeUL) $telerik.addHandler(treeUL, "keydown", this._treeKeyDownDelegate, true); break; case "NewFolder": if (!this._isNodeADirectory(treeNode)) { treeNode = treeNode.get_parent(); } var nodeValue = treeNode.get_value(); this.createNewDirectory(nodeValue); break; case "Delete": var selItems = sender.get_selectedNodes(); var delItem = new Array(); for (var i = 0; i < selItems.length; i++) { var currItem = this._createItemFromTreeViewNode(selItems[i]); delItem.push(currItem); } this.deleteItem(delItem); break; case "Upload": this._showUploadWindow(); break; case "Copy": var selectedItem = null; if (!treeNode.get_selected()) { selectedItem = this._createItemFromTreeViewNode(treeNode); } this._copy("tree", selectedItem); break; case "Paste": var pasteItem = this._createItemFromTreeViewNode(treeNode); this._paste(pasteItem); break; } } </script>
Support custom upload dialog by overriding the built-in RadWindowManager within RadFileExplorer with a custom RadWindow upload dialog. We need more than just adding meta data to uploaded files but must have complete control over this custom Radwindow upload dialog. Thanks in advance, Bob Baldwin Trabon Solutions
The issue is reproducible with RadEditor. When using Lightweight rendering in RadEditor, the FileExplorer's address bar has an inline style with height: 16px rule. This rule should be added only in Classic rendering. As a side effect, the text in the address box is cut off. Possible workaround is to add setting in the web.config to force Lightweight rendering for RadFileExplorer: <add key="Telerik.Web.UI.FileExplorer.RenderMode" value="lightweight" />
When the height of FileExplrorer is bigger that the current view port and an item from its right pane is selected, the content of the page jumps (the active element is brought to the top corner of the page). video: http://screencast.com/t/Ezuteb3xIoCp
FileExplorer does not persist the scrolling position of its tree pane when a folder from the tree is selected in LW (and both horizontal and vertical sroll-bars are shown). video - http://screencast.com/t/gG0l8Vbf7
The following setup will cause an Invalid Argument error in IE8: <div style="display: none;"> <telerik:RadFileExplorer runat="server" ID="RadFileExplorer1" Width="700px" Height="520px" RenderMode="Lightweight"> <Configuration ViewPaths="~/images" /> </telerik:RadFileExplorer> </div> It can extend to a FileExplorer in a MultiPage, for example. Solution for the time being is to avoid using RenderMode=Lightweight for IE8
RadFileExplorer only natively works with standard Windows files that are on the server. This precludes us from effectively using Azure's data structures, especially blob and the newer file types. With things like Webjobs where there is no standard file structure, we need the ability to access files that are stored in a shared space.
When users quickly select different folders in the TreeView and content is still loading, the caching mechanism of FileExplorer fails and loads incorrect data to the last selected folder.
When trying to drag files with not-so-common extensions to upload, they are not uploaded. For the time being, you can workaround the issue by using this patch: <telerik:RadFileExplorer runat="server" ID="RFE1"> <Configuration ViewPaths="~/" UploadPaths="~/" DeletePaths="~/" SearchPatterns="*.*"/> </telerik:RadFileExplorer> <script> Telerik.Web.UI.RadFileExplorer.prototype._onAsyncUploadFilesUploading = function (sender, args) { var currentDroppedFileType = this._pullNextDroppedFileType(); if (this._isDropUploadCancelled === true) { args.set_cancel(true); if (this._isThisLastUploadingFile()) this._finalizeFileDrop(); } this._currentUploadRow = args.get_row(); if (this._btnUpload != null) { this._btnUpload.control.set_enabled(false); } }; </script>
Steps to reproduce: http://demos.telerik.com/aspnet-ajax/fileexplorer/examples/overview/defaultcs.aspx 1. Delete Flower3.jpg 2. Rename Flower5 to Flower3 Actual: The image with Flower3 name has changed to the one which was deleted
The current page FileList items are not properly updated when the paging is enabled. Returning to a previously paged folder is properly restored to page 1, but it keeps showing the content of lastly listed page. The issue is reproducible in all explorer modes of the control. Video - http://screencast.com/t/KVpgADxanuh
For large directories we would like to set the initial sort order to descending so we could see the newest files first. Other times we would like to have the initial sort be by filename descending. We want to set this declaratively on the control or in the .net code behind on initial page load.
When a RadConfirm dialog appears on deleting or another user action is performed a dialog is opened with OK and Cancel button. The localization properties of these buttons can be altered via the RadEditor.Dialogs.resx, although modifying the valu eof the Common_OK property does not change the button's text. The following workaround changes the localization used by the RadWindowManager used by the FileExplorer and modifies the value as per to the desired one. <script type="text/javascript"> function OnClientLoad(sender, args) { var currentLocalization = sender.get_windowManager().get_localization(); // Change the OK button localization value with "MyCustomOK" var myLocalization = currentLocalization.replace("\"OK\":\"OK\"", "\"OK\":\"MyCustomOK\""); sender.get_windowManager().set_localization(myLocalization); } </script> <telerik:RadFileExplorer runat="server" ID="RadFileExplorer1" OnClientLoad="OnClientLoad"> <Configuration ViewPaths="~/" DeletePaths="~/" /> </telerik:RadFileExplorer>
At present, when an invalid file is selected, the alert message does not clearly indicate what is the validation error - invalid extension or the size being too large. It should show a message that clearly states what the problem is so the user can fix it. For the time being you can handle the AsyncUpload's OnClientValidationFailed event and show different messages—http://docs.telerik.com/devtools/aspnet-ajax/controls/asyncupload/client-side-programming/onclientvalidationfailed. Example: ASP.NET ------------------------------- <telerik:RadFileExplorer runat="server" ID="RadFileExplorer1"> <Configuration ViewPaths="~/" UploadPaths="~/" DeletePaths="~/" SearchPatterns="*.jpg" /> </telerik:RadFileExplorer> <script> // Prevent the built-in validation alert Telerik.Web.UI.RadFileExplorer.prototype._showUploadValidationFailedAlert = function () { } function OnClientValidationFailed(sender, args) { var fileExtention = args.get_fileName().substring(args.get_fileName().lastIndexOf('.') + 1, args.get_fileName().length); if (args.get_fileName().lastIndexOf('.') != -1) {//this checks if the extension is correct if (sender.get_allowedFileExtensions().indexOf(fileExtention) == -1) { alert("Wrong Extension!"); } else { alert("Wrong file size!"); } } else { alert("not correct extension!"); } } </script> ------------------------------- C# ------------------------------- RadFileExplorer1.AsyncUpload.OnClientValidationFailed = "OnClientValidationFailed"; ------------------------------- VB ------------------------------- RadFileExplorer1.AsyncUpload.OnClientValidationFailed = "OnClientValidationFailed" -------------------------------
When any new file is uploaded to sub directory, back button stops working. The controls takes that sub directory as it's root directory.
This problem is reproducible with the FileExplorer control only when is set with a thumbnails view-mode.
Clicking on the FileExplorer's Refresh button does not refresh the pager of the control properly when the currently selected page in the grid/listview is bigger than 1. Steps to reproduce: 1. Open http://demos.telerik.com/aspnet-ajax/fileexplorer/examples/server-sideapi/initialpathandpaging/defaultcs.aspx 2. Navigate to some page (e.g. 3) in the FileExplorer's grid/listview 3. Refresh the control (click the "Refresh" button on the toolbar) Result: FileExplorer shows the content if the first page, while the pager keeps the state from before the refresh (e.g. 3).
We had a requirement to add Copy/Paste icons the RadFileExplorer toolbar. That was the easy part. Getting them to call into the native Copy/Paste functions that are used by the Context Menus proved to be challenge. Support provided me the solution below but it would have been nice to have OOB: function CopyFiles() { var fileExplorer = $find("<%=RadFileExplorer1.ClientID%>"); fileExplorer.copyItems(fileExplorer.get_selectedItems()); } function PasteFiles() { var fileExplorer = $find("<%=RadFileExplorer1.ClientID%>"); fileExplorer.paste(fileExplorer._getCurrentFolderItem()) }