Completed
Last Updated: 12 Feb 2020 07:28 by ADMIN
Release 2020.R1.SP.next
Anna
Created on: 17 Jan 2020 14:26
Category: FileManager
Type: Bug Report
0
FileManager context menu: conditionally available options

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
 

1 comment
ADMIN
Ianko
Posted on: 20 Jan 2020 12:24

Hello Anna,

I am converting this to a bug as it is more related to a missing event in the contextMenu option. 

Generally, in order to toggle specific tools you need to handle the open event of the ContextMenu and depending on the target to programmatically toggle the tool via the enable method. However. due to emission in the FileManagerContextMenu class, the open event is not directly available. It is needed to be added to the events field first. And this the bug here (https://github.com/telerik/kendo-ui-core/issues/5530). 

Here you are also an example how you could implement the above requirement: https://dojo.telerik.com/ohOgoVIH.

Regards,
Ianko
Progress Telerik

Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.