How to disable the download option if folder does not have files on right click of rad file explorer gridview context menu.
Please send me the code
Thanks
sandhya.
1 Answer, 1 is accepted
0
Dobromir
Telerik team
answered on 28 Jun 2011, 10:23 AM
Hi Sandhya,
RadFileExplorer does not offer "download" functionality out-of-the-box, so I assume it is some sort of a custom implementation. However, in general, if you want to disable a context menu item for a folder depending of if it contains files or not, I would suggest you the to implement custom content provider and override the ResolveRootDirectoryAsTree() and provide a custom attribute to the DirecotryItem. Then, you can grid's dataitem on the client and enable / disable the context menu according to this custom attribute.