Unplanned
Last Updated: 08 May 2020 09:21 by Stig

Bug report

When the FileManager is initialized with a local data source the Context Menu is not displayed.

Reproduction of the problem

  1. Run this dojo
  2. Right-click on a folder of a file

Current behavior

The context menu is not displayed. The Context menu is not expected to be displayed for the built-in rename and delete commands, but a context menu is not displayed when custom commands are implemented.

Expected/desired behavior

A context menu should be displayed when local data source is used.

Environment

  • Kendo UI version: 2020.1.406
  • Browser: [all]
Unplanned
Last Updated: 23 Apr 2020 11:30 by ADMIN
Created by: Stig
Comments: 1
Category: FileManager
Type: Bug Report
3

I'm trying to use the delete context method, but when selecting multiple folders and deleting them it sends the same delete request multiple times. The more folders (no subfolders) I try to delete the more requests it sends.

 

My theory is that the datasource somehow doesn't register it has been deleted, so it tries to automatically sync the datasource by sending it again. Note that I'm using a virutal filesystem, but I'm returning the same object as in this sample

 

Also note that I'm using a mix of MVC and Jquery so I have a custom scheme as recommended in some of my previous tickets.

 

This is scheme:

$.extend(true, kendo.data, { schemas: { "filemanager": { data: function (data) { return data.Items || data || []; }, model: { id: "path", hasChildren: "hasDirectories", fields: { entryId: { field: "EntryId", editable: false, type: "Number" }, folderId: { field: "FolderId", editable: false, type: "Number" }, name: { field: "Name", editable: true, type: "String", defaultValue: "New Folder" }, size: { field: "Size", editable: false, type: "Number" }, path: { field: "Path", editable: false, type: "String" }, extension: { field: "Extension", editable: false, type: "String" }, isDirectory: { field: "IsDirectory", editable: false, defaultValue: true, type: "Boolean" }, hasDirectories: { field: "HasDirectories", editable: false, defaultValue: false, type: "Boolean" }, created: { field: "Created", type: "Date", editable: false }, createdUtc: { field: "CreatedUtc", type: "Date", editable: false }, modified: { field: "Modified", type: "Date", editable: false }, modifiedUtc: { field: "ModifiedUtc", type: "Date", editable: false } } } } } });


        $("#document-manager").kendoFileManager({
            dataSource: {
                transport: {
                    read: {
                        type: "post",
                        url: "/FileManager/Read",
                        data: function() {
                            return getFileMetaData()
                        }
                    },
                    update: {
                        type: "post",
                        url: "/FileManager/Rename",
                    },
                    create: {
                        type: "post",
                        url: "/FileManager/Create",
                        data: function () {
                            return getFileMetaData()
                        }
                    },
                    destroy: {
                        type: "post",
                        url: "/FileManager/DeleteEntry"
                    }
                },
            },
            contextMenu: {
                items: [
                    { name: "rename" },
                    { name: "delete" }
                ]
            },
        });

 

And lastly my C# controller method which deletes the folder and returns the same object as in the above mentioned sample:


        [HttpPost]
        public async Task<ActionResult> DeleteEntry(FileManagerEntry deleteDto)
        {
            await _fileManagerService.DeleteEntry(deleteDto);

            return Json(new object[0], JsonRequestBehavior.AllowGet);
        }

 

You can also see in this screencast that it sends the delete request multiple times for the same entry:

https://screencast-o-matic.com/watch/cYfolKzXZs

 

Unplanned
Last Updated: 16 Mar 2020 06:17 by ADMIN

There is no padding between semicolon and the data "Type:Folder" wouldn't be better "Type: folder" with a space in between?

Completed
Last Updated: 18 Mar 2020 18:01 by ADMIN
Release 2020.R2

Bug report

Reproduction of the problem

Dojo example.

  1. Open the browser dev tools (Network tab)
  2. Select a file for upload in the FileManager
  3. Check the data sent with the request to the Upload end point

Current behavior

The additional data set in the upload event handler (e.data) is not sent with the request.

Expected/desired behavior

The additional data is sent with the request.

The following dojo example contains a workaround:

<script>
  kendo.ui.FileManager.fn._sendUploadPathParameter = function(ev) {
    ev.data = $.extend(ev.data, { path: this.path() });
  };
</script>

Environment

  • Kendo UI version: 2020.1.219
  • jQuery version: x.y
  • Browser: [all ]
Unplanned
Last Updated: 25 Feb 2020 08:33 by ADMIN
Created by: Lorenzo
Comments: 1
Category: FileManager
Type: Bug Report
0

Hi,

I've tried to configure resizable columns in File manager grid like in the following 

sample

It works, but I got a confirm popup panel when I try to resize ...

What's wrong ..??

 

Thanks

Unplanned
Last Updated: 18 Feb 2020 09:44 by Stig

Bug report

Reproduction of the problem

Dojo example.

  1. Click on "Folder" in the treeview

Current behavior

The file in the selected folder is displayed as "undefined"

Expected/desired behavior

The file data is properly retrieved and displayed.

A workaround is available in this dojo example: https://dojo.telerik.com/ORImIvaC

Environment

  • Kendo UI version: 2020.1.114
  • jQuery version: x.y
  • Browser: [all]
Unplanned
Last Updated: 11 Feb 2020 09:33 by Extreg

Bug report

Reproduction of the problem

Reproducible in the demos.

  1. Select the Images folder in the treeview
  2. Right click the Images folder and rename it

Current behavior

The breadcrumb does not update with the new folder name. Note that if you select another folder (e.g. Documents) after renaming Images and navigate back to the renamed folder the breadcrumb properly displays its new name.

Expected/desired behavior

The change in the folder name is reflected in the breadcrumb.

Environment

  • Kendo UI version: 2020.1.114
  • jQuery version: x.y
  • Browser: [all]
Declined
Last Updated: 05 Feb 2020 17:22 by ADMIN

Bug report

Reproduction of the problem

Dojo example.

  1. Open the browser dev tools console.
  2. Expand "Folder" in the treeview.
  3. Click "Folder2" in the treeview.
  4. Click "Folder" in the breadcrumb

Current behavior

The following js exception is thrown: VM187678 kendo.all.min.js:114 Uncaught TypeError: Cannot read property 'loaded' of undefined

Expected/desired behavior

Navigation occurs without an exception.

Environment

  • Kendo UI version: 2020.1.114
  • jQuery version: x.y
  • Browser: [all]
Unplanned
Last Updated: 30 Jan 2020 09:30 by ADMIN
Created by: Anna
Comments: 1
Category: FileManager
Type: Bug Report
1

This one is a bit complex:

  1. Run sample at https://dojo.telerik.com/@GaloisGirl/IPAMIHik
  2. Enter folder "Documents"
  3. Delete "ExcelDocument.xslx" - the operation should fail and the file will come back.
  4. Delete "Text.txt" - no request is sent, the file does not come back

Any "delete" operation can be replaced by a "rename" operation, and the result is the same.

The problem does not happen at root level. I don't know if it's because it's the root levels, or because the elements are directories.

Unplanned
Last Updated: 31 Jan 2020 15:26 by ADMIN

Context: my communication with the back-end is wrapped in a library, that handles the xhr requests and if needed, throws a custom exception. My transport is therefore made of functions. The sample below simulates getting an error from that library.

Demo: https://dojo.telerik.com/@GaloisGirl/ayEpOKOQ/2

Actual result:

  1. The confirm dialog stays open.
  2. The listView is displayed as loading.

 

Completed
Last Updated: 12 Feb 2020 07:28 by ADMIN
Release 2020.R1.SP.next
Created by: Anna
Comments: 1
Category: FileManager
Type: Bug Report
0

I'd like to add a "download" option to the context menu, but only for files, not folders.

Here's what I have so far:  https://dojo.telerik.com/@GaloisGirl/iLoHIhoh
 

Completed
Last Updated: 28 Feb 2020 08:42 by ADMIN

According to https://docs.telerik.com/kendo-ui/controls/data-management/filemanager/context-menu:

You can define your custom items which can execute custom commands

However, no option allows me to configure my own commands.

I managed to hack this: https://dojo.telerik.com/@GaloisGirl/iLoHIhoh , but it's an ugly solution.

Completed
Last Updated: 11 Feb 2020 12:41 by ADMIN
Release 2020.R1.SP.next
Created by: Anna
Comments: 1
Category: FileManager
Type: Bug Report
0
  1. Run sample at https://dojo.telerik.com/@GaloisGirl/OJUPoYOY
  2. Click "refresh"
  3. Result
    1. Actual behavior: after clicking "refresh", the new name of the folder appears only in the right pane
    2. Expected behavior: both panes should be updated
Declined
Last Updated: 20 Jan 2020 11:18 by ADMIN
Created by: Anna
Comments: 1
Category: FileManager
Type: Bug Report
0

Creating a new folder

  1. Run sample at https://dojo.telerik.com/@GaloisGirl/EpuYiJOt   (cloned from https://demos.telerik.com/kendo-ui/filemanager/api , but there's no back-end error there )
  2. Add new folder
  3. Backend returns error (because the relative URLs throw a 404 error there)
  4. Result:
    1. Actual: a new folder is seen in the right pane (regardless if list or grid) but not in the TreeView in the left pane
    2. Expected: state should be consistent between both panes.

Deleting a folder

Fails silently. The folder disappears from both views.

Renaming a folder

The renamed folder is shown as renamed in the TreeView, but the ListView or GridView hangs.

If I'm doing something wrong, an example of proper back-end error handling would be helpful.

 

 

Completed
Last Updated: 17 Feb 2020 15:48 by ADMIN
Release 2020.R1.SP.next

Reproduction:

  1. open https://demos.telerik.com/kendo-ui/filemanager/keyboard-navigation
  2. select an item
  3. press key "Delete"
  4. press tab, then enter to cancel
  5. result:
    1. actual behavior: focus is away from widget, document.activeElement is <body>
    2. expected behavior: focus should be back on FileManager widget
Declined
Last Updated: 20 Jan 2020 08:04 by ADMIN
Created by: Anna
Comments: 1
Category: FileManager
Type: Bug Report
0

The views.tree option is undocumented on https://docs.telerik.com/kendo-ui/api/javascript/ui/filemanager/configuration/views.tree

The example fails with error:

Error: Error! The requested URL returned 0 - error at line 114

It's also unclear whether "tree" is a 3rd view in parallel to "list" and "grid" as the drop-down on https://demos.telerik.com/kendo-ui/filemanager/api would suggest (and if that is the case, how to enable this as an option in the toolbar) or whether it relates to the treeView of folders on the side.

Completed
Last Updated: 27 Jan 2020 13:53 by ADMIN
Release 2020.R1.SP.next
Created by: Anna
Comments: 2
Category: FileManager
Type: Bug Report
0

As can be seen on the screenshot on https://www.telerik.com/support/whats-new/kendo-ui :

  • actual behavior: active view is grid, but highlighted button is list
  • expected behavior: active view and highlighted button match